cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: HTTP version getinfo

From: Brad Schick <schickb_at_gmail.com>
Date: Wed, 24 Jun 2009 22:11:52 -0700

On 06/21/2009 06:06 PM, Brad Schick wrote:
> On 06/21/2009 02:00 PM, Daniel Stenberg wrote:
>
>> On Fri, 19 Jun 2009, Brad Schick wrote:
>>
>>
>>> Can I obtain the actual HTTP version (1.0 or 1.1) with
>>> curl_easy_getinfo? I realized I can grab the first part of the
>>> response headers, but it would surprise me if libcurl isn't already
>>> doing this. Hopefully I'm just missing something.
>>>
>> Get surprised! There's currently no CURLINFO_* code done for
>> extracting that info... If you write up a patch for it, I'd be
>> interested. libcurl already figures out the version so it's mostly a
>> matter of storing it for later retrieval.
>>
>
> Patch is attached. It was very easy since it was already parsed and
> stored. Really just needed a new getinfo flag.
>
>

Any feedback on this patch? Is it acceptable?

-Brad
Received on 2009-06-25