curl-library
Re: HTTP version getinfo
From: Brad Schick <schickb_at_gmail.com>
Date: Sun, 21 Jun 2009 18:06:04 -0700
Received on 2009-06-22
Date: Sun, 21 Jun 2009 18:06:04 -0700
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.
-Brad
- text/x-patch attachment: response_version.patch