cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: [Problems with Proxy Implementation with CURL/C++]

From: Gibran Akram <gibran.akram_at_gmail.com>
Date: Tue, 28 Oct 2008 11:32:22 +0600

The following is showing up in response headers:

Initial global init: 0
Handle initialised..
URL : http://dataupdate.xxx.xxxxxxxxxx.com/xxxprofile/xxx.pro
* About to connect() to proxy 192.168.1.xxx port 8080 (#0)
* Trying 192.168.1.xxx... * connected
* Connected to 192.168.1.xxx (192.168.1.xxx) port 8080 (#0)
* Establish HTTP proxy tunnel to dataupdate.xxx.xxxxxxxxxx.com:80
* Proxy auth using Basic with user 'xxxxx'
* Server auth using Basic with user 'xxxxx_client'
> CONNECT dataupdate.xxx.xxxxxxxxxx.com:80 HTTP/1.0
Host: dataupdate.xxx.xxxxxxxxxx.com:80
Proxy-Authorization: Basic bXdhcWFzOkFCQzEyM3NzaQ==
Proxy-Connection: Keep-Alive

< HTTP/1.0 403 Forbidden
< Server: squid/2.6.STABLE18
< Date: Tue, 28 Oct 2008 05:26:46 GMT
< Content-Type: text/html
< Content-Length: 1086
< Expires: Tue, 28 Oct 2008 05:26:46 GMT
< X-Squid-Error: ERR_ACCESS_DENIED 0
< X-Cache: MISS from localhost
< X-Cache-Lookup: NONE from localhost:8080
< Via: 1.0 localhost:8080 (squid/2.6.STABLE18)
< Proxy-Connection: close
<
* The requested URL returned error: 403
* Received HTTP code 403 from proxy after CONNECT
* Closing connection #0
* Failure when receiving data from the peer
Error curl_easy_perform : 56
HTTP Connect Code :403

Authentication being used by the network is basic, and I can browse through
using a browser & proxy prvoided.

Can't see a problem with the code though.

Operating System: SunOS SolarisBOX 5.10 s10_72 i86pc i386 i86pc
CURL Version: curl 7.18.2

-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Daniel Stenberg
Sent: Tuesday, October 28, 2008 2:38 AM
To: libcurl development
Subject: Re: [Problems with Proxy Implementation with CURL/C++]

On Fri, 24 Oct 2008, Gibran Akram wrote:

> However, the curl_easy_perform call is returning CURLE_RECV_ERROR (56) and

> the error buffer has "The requested URL returned error: 403"
>
> Can't figure out what I've missed here... can anyone give a tip?

Enable CURLOPT_VERBOSE and run the code again and it usually provides some
hints to proceed with.

--
  / daniel.haxx.se
Received on 2008-10-28