Is there a way in C to exclude the HTTP header information that comes with the data when used recv()on a socket? I am trying to read some binary data, and all I want is the actual binary information, not the HTTP header information. The resulting current data is as follows:
HTTP/1.1 200 OK
Content-Length: 3314
Content-Type: image/jpeg
Last-Modified: Tue, 20 Mar 2012 14:51:34 GMT
Accept-Ranges: bytes
ETag: "45da99f1a86cd1:6b9"
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Mon, 20 Aug 2012 14:10:08 GMT
Connection: close
╪ α
I would just read the binary part of the file. (Obviously, not all binary, only so much has been shown, since I printed the output from my recv loop as a string, and the first NULL char after this small binary string).
I just need to get rid of the header part, is there an easy way to do this?
source
share