curl-library
Re: How to detect end of headers?
From: Jamie Lokier <jamie_at_shareable.org>
Date: Thu, 19 Feb 2009 21:13:58 +0000
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