curl-library
Re: CURLOPT_PROXYUSERPWD
Date: Thu, 25 Sep 2003 10:51:08 -0700
> 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");
thanks
- Jerry
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-09-25