cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Proxy Port Bug

From: Venal Technology <brian_at_venaltech.com>
Date: Tue, 21 Nov 2006 00:59:24 -0500

I'm using cURL version 7.15.3:

rouier@a2s18 [~]# curl -v -x http://10.134.11.47:8888
http://10.134.11.24/
* About to connect() to proxy 10.134.11.47 port 8888
* Trying 10.134.11.47... Connection timed out
* couldn't connect to host
* Closing connection #0
curl: (7) couldn't connect to host

rouier@a2s18 [~]# curl -v -x http://128.112.139.97:8888
http://www.google.com
* About to connect() to proxy 128.112.139.97 port 8888
* Trying 128.112.139.97...

rouier@a2s18 [~]# curl -v -x 194.170.187.5:80 http://www.google.com
* About to connect() to proxy 194.170.187.5 port 80
* Trying 194.170.187.5... connected
* Connected to 194.170.187.5 (194.170.187.5) port 80
> GET http://www.google.com HTTP/1.1

rouier@a2s18 [~]# curl -v -x 165.230.49.114:8888 http://www.google.com
* About to connect() to proxy 165.230.49.114 port 8888
* Trying 165.230.49.114...

I've tested this on my a2hosting and hostgator accounts.

Brian
----- Original Message -----
From: "Ralph Mitchell" <ralphmitchell_at_gmail.com>
To: "the curl tool" <curl-users_at_cool.haxx.se>
Sent: Tuesday, November 21, 2006 12:36 AM
Subject: Re: Proxy Port Bug

> On 11/20/06, Venal Technology <brian_at_venaltech.com> wrote:
>>
>>
>> Why can I only get proxies to work if they are on port 80? I've tried it
>> on
>> 3 hosts now.
>
> Curl version?? Example command line??
>
> I'm happily using a proxy on port 8888 with both curl-7.15.1 &
> curl-7.16.0:
>
> curl -v -x http://10.134.11.47:8888 http://10.134.11.24/
> * About to connect() to proxy 10.134.11.47 port 8888 (#0)
> * Trying 10.134.11.47... connected
> * Connected to 10.134.11.47 (10.134.11.47) port 8888 (#0)
>> GET http://10.134.11.24/ HTTP/1.1
>> User-Agent: curl/7.16.0 (i686-pc-linux-gnu) libcurl/7.16.0 OpenSSL/0.9.8d
>> zlib
> /1.2.3
>> Host: 10.134.11.24
>> Pragma: no-cache
>> Accept: */*
>> Proxy-Connection: Keep-Alive
>>
> < HTTP/1.1 200 OK
> < Via: 1.1 tinyproxy (tinyproxy/1.6.3)
> < Content-Type: text/html
> < ETag: "3a778-5a3-a8ab6f40"
> < Server: Apache
> < Date: Tue, 21 Nov 2006 05:36:08 GMT
> < Last-Modified: Sat, 08 Oct 2005 04:33:25 GMT
> < Content-Length: 1443
> < Accept-Ranges: bytes
> etc...
>
> Ralph Mitchell
>
Received on 2006-11-21