cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: How to detect end of headers?

From: Jamie Lokier <jamie_at_shareable.org>
Date: Thu, 19 Feb 2009 21:13:58 +0000

James Cheng wrote:
> My other thought was to have my code run within the WRITEFUNCTION
> callback, but if the response has Content-Length:0, then it looks
> like the body callback is never called.

If the response has Content-Length:0 then the whole request finishes
when the headers are done; you can easily detect that :-)

-- Jamie
Received on 2009-02-19

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET