cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: HTTP version

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 21 Jan 2016 16:53:10 +0100 (CET)

On Wed, 20 Jan 2016, Per Arne Vollan wrote:

> Does anybody know if there is a cURL api function I can use to check which
> HTTP version is being used in a request?

I take it you mean in a response?

It was actually convinced curl_easy_getinfo() was the answer to the question
but then it turns out we actually don't export that information there... I
would say there's room to add an option to get that exported! Want to work on
that?

Right now I believe adding a header callback (CURLOPT_HEADERFUNCTION) and
parse it out yourself is the only way.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2016-01-21