cURL / Mailing Lists / curl-library / Single Mail

curl-library

Using Default Proxy Credentials on Windows

From: Scott Richter <scott.d.richter_at_gmail.com>
Date: Thu, 9 Feb 2012 09:09:29 -0500

Hello,

I have an application using libcurl to perform transfers over HTTP and
HTTPS to a web server.

Many of the end-users' PCs are behind proxy servers using domain
authentication. I'm not sure of the details of how this works, but we have
the same thing here where I work. I don't have to enter my
username/password for the proxy server, it just works using my Windows
login credentials.

I wrote a .NET application a while back, and I used the
CredentialCache.DefaultNetworkCredentials as the credentials for the proxy
settings. This application is able to connect to the Internet fine without
the user entering their login credentials.

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.

Thanks,
Scott

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