Haxx ad

curl's project page on


cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: Proxy Authentication

From: Dan Fandrich <>
Date: Mon, 5 Jun 2006 01:00:23 -0700

On Mon, Jun 05, 2006 at 12:19:46AM -0700, Himanshu Purohit wrote:
> Hi all,
> I want to download a file using CUrl. I am using proxy .. without
> proxy it works fine but if i use proxy then it doesn't . the code is as
> following ..
> unsigned long ulProxyAuthType = 0;
> CURLcode CRet = curl_easy_getinfo(m_pCURL,CURLINFO_PROXYAUTH_AVAIL,&
> ulProxyAuthType);

This is only going to return a valid value AFTER the connection completes.
At this point, it's probably just going to return zero.

> if ((ulProxyAuthType & CURLAUTH_BASIC) == CURLAUTH_BASIC)
> CRet = curl_easy_setopt(m_pCURL, CURLOPT_PROXYAUTH, CURLAUTH_BASIC);

...which means that this code isn't run, and the proxy isn't turned on.

>>> Dan

--              The web change of address service
          Let webmasters know that your web site has moved
Received on 2006-06-05

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET