cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Using Default Proxy Credentials on Windows

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 10 Feb 2012 23:07:09 +0100

On Thu, Feb 09, 2012 at 09:09:29AM -0500, Scott Richter wrote:
> When I try to use libcurl to transfer files, I am getting a proxy
> authentication required error.  My questions is, how do I tell libcurl to use
> the default credentials of the logged in user for proxy authentication, in the
> same way I can tell .NET to do so?  My goal is that the user should never have
> to enter their proxy username/password, because most of my users will have no
> idea what that is.  Any help would be appreciated.

If your libcurl has SSPI enabled, it should be able to do this. Try
setting CURLOPT_PROXYUSERPWD to ":" to enable it, and CURLOPT_PROXYAUTH
to an appropriate value (NTLM or ANY).

>>> Dan

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-02-10