cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Squid proxy authentication problem

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 12 Feb 2009 20:38:12 -0800

On Thu, Feb 12, 2009 at 05:37:37PM -0700, Sparks, James wrote:
> I'm having a problem getting Proxy authentication from our Squid server (squidNT/2.7.STABLE5). I'm using libCurl version 7.19.3. The Curl proxy options currently set are (company passwords replaced by *****):
> curl_easy_setopt(m_CurlHandle, CURLOPT_PROXY, "http://10.10.1.46:3128/");
> curl_easy_setopt(m_CurlHandle, CURLOPT_USERNAME, "user1");
> curl_easy_setopt(m_CurlHandle, CURLOPT_PASSWORD, "*****");
> curl_easy_setopt(m_CurlHandle, CURLOPT_PROXYAUTH, CURLAUTH_ANY);
> The response code returned by curl_easy_perform is CURLE_OK.
> I hard link with the libCurl and OpenSSL libraries and am building on a Windows platform using VS 2005.

If that username and password is for the proxy, not the remote site, then
you need to use the CURLOPT_PROXYUSERPWD (or CURLOPT_PROXYUSERNAME &
CURLOPT_PROXYPASSWORD) options instead. Note also that you've given away
your password in the log file you sent.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2009-02-13