curl-library
RE: How to detect end of headers?
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 23 Feb 2009 19:30:06 +0100 (CET)
Date: Mon, 23 Feb 2009 19:30:06 +0100 (CET)
On Mon, 23 Feb 2009, James Cheng wrote:
> Thanks for the suggestion. I turns out I need to parse some other headers
> anyway, so I'll do it in my HEADERFUNCTION callback.
>
> On that subject, aside from the header callback, does libcurl provide any
> way to get arbitrary headers from the response headers? Something where I
> can pass a string to find, say "Cache-control", and it would return the
> value for the header?
Nope, you do that with a header callback and your own parser.
-- / daniel.haxx.seReceived on 2009-02-23