|
#1
|
|||
|
|||
|
hi all
i have just compiled my own httpget in c & works without any errors & i just want to now if there is a trick to skip downloaded files head like.. ------------------ HTTP/1.1 200 OK Connection: close Date: Fri, 05 Feb 2010 16:28:22 GMT Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET Content-Length: 13 Content-Type: text/html Set-Cookie: ASPSESSIONIDQCBBSBTR=FGHALDOBACMGPOPCDHHOKNBF; path=/ Cache-control: private -------------------- How do i skip the Head bit of the incoming data? i can do it with my own cut_header() function but thats two proccess & instead of me skiping the header while downloading can do the trick & how can i detect the incoming header files end & write the actual incoming data by skipping the header to a file? any one? |
|
#2
|
|||
|
|||
|
If you're going to be talking and parsing HTTP, you really should read the HTTP specs...
But, basically, just look for a blank line... The headers all precede the blank line, and the body (if any) follows it... |
|
#3
|
|||
|
|||
|
thank you RobSeace
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|