cURL / Mailing Lists / curl-users / Single Mail

curl-users

curl wiht privoxy

From: xiaolei zhang <zhaxiaolei_at_gmail.com>
Date: Sat, 22 Apr 2006 12:39:45 +0800

hello all:

I try to use curl with privoxy/tor£¬but fail¡£ My privoxy is on 127.0.0.1:8118£¬it
seems that curl try to use http1.0 to open a http tunnel£¬then privoxy
return a 403 error.

what shall i do?

curl -v ... give this message:

----------------------------------------------------------------------------------------------------------

* About to connect() to 127.0.0.1 port 8118
* Trying 127.0.0.1... connected
* Connected to 127.0.0.1 (127.0.0.1) port 8118
* Establish HTTP proxy tunnel to 127.0.0.1:8118
> CONNECT 127.0.0.1:8118 HTTP/1.0
> Host: 127.0.0.1:8118
> User-Agent: curl/7.15.1 (i686-pc-cygwin) libcurl/7.15.1 OpenSSL/0.9.8a
zlib/1.2.3
> Proxy-Connection: Keep-Alive
>
< HTTP/1.0 403 Connection not allowable
< X-Hint: If you read this message interactively, then you know why this
happens ,-)
<
* Received HTTP code 403 from proxy after CONNECT
* Closing connection #0
curl: (56) Received HTTP code 403 from proxy after CONNECT
* About to connect() to www.math.tu-berlin.de port 80
* Trying 130.149.13.30... connected
* Connected to www.math.tu-berlin.de (130.149.13.30) port 80
* Establish HTTP proxy tunnel to www.math.tu-berlin.de:80
> CONNECT www.math.tu-berlin.de:80 HTTP/1.0
> Host: www.math.tu-berlin.de:80
> User-Agent: curl/7.15.1 (i686-pc-cygwin) libcurl/7.15.1 OpenSSL/0.9.8a
zlib/1.2.3
> Proxy-Connection: Keep-Alive
>
< HTTP/1.1 405 Method Not Allowed
< Date: Sat, 22 Apr 2006 03:38:54 GMT
< Server: Apache/1.3.26 (Unix) Debian GNU/Linux mod_perl/1.26 mod_ssl/2.8.9
OpenSSL/0.9.6c
< Allow: GET, HEAD, OPTIONS, TRACE
< Connection: close
< Content-Type: text/html; charset=iso-8859-1
<
* Received HTTP code 405 from proxy after CONNECT
* Closing connection #0
curl: (56) Received HTTP code 405 from proxy after CONNECT

-----------------------------------------------------------------------------------------------------------

thank you !
Received on 2006-04-22