Re: Proxy Authentication
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,&
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.
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2006-06-05