cURL / Mailing Lists / curl-library / Single Mail


RE: curl-library Digest, Vol 111, Issue 50

From: Anton Kabakov <>
Date: Thu, 20 Nov 2014 08:48:23 +0000

I want to map the servers by used authentication method, so when accessing such a server next time it will be possible to configure CURL with needed auth. method.
Currently I have an issue with POST requests - as CURL do not know if authentication is needed and what method to use it sends the POST with a body, and when HTTP 401 arrives the POST body is getting lost.

 Anton Kabakov
CFG - VPN team

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-multi-when-leaving-for-timeout-close-accordingly.patch
Type: text/x-diff
Size: 1936 bytes
URL: <>


Message: 4
Date: Sun, 16 Nov 2014 20:36:49 +0100
From: Michael Osipov <>
To: libcurl development <>
Subject: Re: How to get authentication method used by libcurl
Message-ID: <>
Content-Type: text/plain; charset=utf-8; format=flowed

Am 2014-11-16 um 17:25 schrieb Anton Kabakov:
> Hello,
> I'm using libcurl to access several webservers. Some of those servers use different authentication but always with the same user credentials.
> Currently I'm configuring curl with CURLAUTH_ANY and those credentials. Everything is working, except I can't find any way to get the authentication method that was used.
> Is the an API I can use to get the used authentication method?


I am curious why you need this information.


List admin:
Received on 2014-11-20