curl-library
Re: How to detect end of headers?
From: Piotr Dobrogost <pd_at_curlpp.org>
Date: Mon, 23 Feb 2009 20:07:22 +0100
Date: Mon, 23 Feb 2009 20:07:22 +0100
Daniel Stenberg wrote:
> On Mon, 23 Feb 2009, James Cheng wrote:
>
>> 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.
I guess reading arbitrary header's value is a common task.
Have you thought about adding the ability to register a header callback
for given set of headers?
Regards
Piotr Dobrogost
Received on 2009-02-23