cURL / Mailing Lists / curl-library / Single Mail


Re: HTTP version

From: Daniel Stenberg <>
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

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

List admin:
Received on 2016-01-21