cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_PROXYUSERPWD

From: Ralph Mitchell <rmitchell_at_eds.com>
Date: Sun, 28 Sep 2003 10:33:34 -0500

Jerry G. Chiuan wrote:

> > Subject: Re: CURLOPT_PROXYUSERPWD
> > Jerry G. Chiuan wrote:
> >
> > >I use CURLOPT_PROXYUSERPWD for my proxy authenticaiton.
> > >however, I found my app keeps retrying and the proxy keeps
> returning "Proxy
> > >Authentication Required"
> > >I also found that the app never sends out "username:passwd"
> > >( I use sniffer to capture all packets to debug )
> > >
> > Squid uses BASIC authentification. You will see the username:passwd
> only
> > Base64 encoded.
> > Lookup for a line with the header-tag "Authorization:"
> > Authorization: Basic <Base64>
> But I don't see any stuff in http header like "Authorization:"
> what is the problem usually when this happens?
>
> basically, I only insert one more line into my codes for proxy
> authentication
> curl_easy_setopt(easyHandle, CURLOPT_PROXYUSERPWD, "loginname:passwd");

Do you already have:

    curl_easy_setopt(easyHandle, CURLOPT_PROXY,
"http://your.proxy.com:port/");

in there somewhere?? If not, curl won't be finding your proxy...

Ralph Mitchell

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-09-28