PHP a http hlavicky ...

Sekcia: Programovanie 04.08.2009 | 14:44
Avatar Milan Dvorský debian,mint kde,android  Administrátor
zdar panstvo, nevedel som uz kde mam hladat, tak sa pytam tu:

posielam formular, vacsinu hlaviciek si viem precitat, ale ... posielam aj obrazok a potrebujem z hlaviciek vytiahnut jeho kod ako to robi napr. Live HTTP Headers vo FF.

priklad:
Content-Type: multipart/form-data; boundary=---------------------------1107328591717333674904834336
Content-Length: 3271
-----------------------------1107328591717333674904834336
Content-Disposition: form-data; name="uploadedfile"; filename="odoslat.jpg"
Content-Type: image/jpeg

˙Ř˙ŕ JFIF  H H ˙ţ Created with GIMP˙Ű C ˙Ű C˙Ŕ   K" ˙Ä    
˙Ä ,     V¦Ö#$7w¶˙Ä    ˙Ä -    "!#1$2AQRa˙Ú   ? ôá şű¨]tâ{S:ŹÉž)‘î/ßůćz^ż™Î­ţ¨óU)EéS§Zđ׏óú~¤źž\äĎ,bŕş×
luóMزYŠ”h%÷Ľc]dą?8ă
L®?Bs;3sž<E49–N
·>
¬Ľ©ó Äý©qžęż˝§Żć*ý+h_ŘźĘ˙ ±xP˝wŢ�tFˇó#q©ŃM§dyĆv;Oë :á1y˙ `Ů�0)eĘHR­˛’ 8ÇĹŘs—ë4lCŤÂu‰ÇoŘ~ľoîĂî6Ëé¶Č9»�Ť'Ôś·Š‹Žâ

J!…\8`ËJÜ�ĐVµ ĘĂaȆ^
°ÇĐ ¤ASűb8ý'üňŘ4B_R:ÝHŘ=4Ü®š˛|„Ą'R“z0˛%»9Eîf’�ÜüyW]ÂLˇňwKÔB·L͉*fR śŚěÖŢÔąPŽĎŘäÚ­z…çÇ ”®Óž+5.T˛ÂFzÖŞŮ�,á±ZÄ9á4ĂžqKxÉYa—ňâx¨ú±ÖüçVëăáÍckŐš…Ůn›‰vĺŰ6¤–ş×ây-–víE^Ö,[€ô‹'§%ĆtŢÖBÎ?)n÷ÇŐŠ«E=zđG
Ĺ/Ş1÷,H € ˙ ľ?˙Ů
-----------------------------1107328591717333674904834336
Content-Disposition: form-data; name="var"

nahodneudaje
-----------------------------1107328591717333674904834336
Content-Disposition: form-data; name="submit"

Upload File
-----------------------------1107328591717333674904834336--