cURL / Mailing Lists / curl-users / Single Mail

curl-users

Proxy error: 504 Connect to curl.haxx.se:80 failed: Connection refused.

From: Ciro Bigongiari <ciro.bigongiari_at_gmail.com>
Date: Sat, 11 Feb 2012 21:56:58 +0100

Dear CurlUsers,

I used curl fruitfully some times in the past but now I'm facing
a problem I couldn't solve.
When I try to get any webpage from my laptop, running Ubuntu 11.10,
I get the error message:

Proxy error: 504 Connect to curl.haxx.se:80 failed: Connection refused.

For example:

cirob2:~/Software/scripts> curl http://curl.haxx.se
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"
<http://www.w3.org/TR/html4/loose.dtd>>
<html><head>
<title>Proxy error: 504 Connect to curl.haxx.se:80 failed: Connection
refused.</title>
</head><body>
<h1>504 Connect to curl.haxx.se:80 failed: Connection refused</h1>
<p>The following error occurred while trying to access
<strong>http://curl.haxx.se</strong>:<br><br>
<strong>504 Connect to curl.haxx.se:80 failed: Connection
refused</strong></p>
<hr>Generated Sat, 11 Feb 2012 16:46:18 CET by Polipo on
<em>localhost:8118</em>.
</body></html>

If I try instead to open the same web page with firefox
firefox http://curl.haxx.se
the requested web page pops up without any problem.

I couldn't figure out what is wrong even with --trace-ascii option.
I paste below the output:

== Info: About to connect() to proxy 127.0.0.1 port 8118 (#0)
== Info: Trying 127.0.0.1... == Info: connected
== Info: Connected to 127.0.0.1 (127.0.0.1) port 8118 (#0)
=> Send header, 211 bytes (0xd3)
0000: GET http://curl.haxx.se HTTP/1.1
0022: User-Agent: curl/7.21.6 (i686-pc-linux-gnu) libcurl/7.21.6 OpenS
0062: SL/1.0.0e zlib/1.2.3.4 libidn/1.22 librtmp/2.3
0092: Host: curl.haxx.se
00a6: Accept: */*
00b3: Proxy-Connection: Keep-Alive
00d1:
<= Recv header, 68 bytes (0x44)
0000: HTTP/1.1 504 Connect to curl.haxx.se:80 failed: Connection refus
0040: ed
<= Recv header, 24 bytes (0x18)
0000: Connection: keep-alive
<= Recv header, 37 bytes (0x25)
0000: Date: Sat, 11 Feb 2012 16:29:20 GMT
<= Recv header, 25 bytes (0x19)
0000: Content-Type: text/html
<= Recv header, 21 bytes (0x15)
0000: Content-Length: 562
<= Recv header, 12 bytes (0xc)
0000: Expires: 0
<= Recv header, 25 bytes (0x19)
0000: Cache-Control: no-cache
<= Recv header, 18 bytes (0x12)
0000: Pragma: no-cache
<= Recv header, 2 bytes (0x2)
0000:
<= Recv data, 562 bytes (0x232)
0000: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
0040: http://www.w3.org/TR/html4/loose.dtd">.<html><head>.<title>Proxy
0080: error: 504 Connect to curl.haxx.se:80 failed: Connection refuse
00c0: d.</title>.</head><body>.<h1>504 Connect to curl.haxx.se:80 fail
0100: ed: Connection refused</h1>.<p>The following error occurred whil
0140: e trying to access <strong>http://curl.haxx.se</strong>:<br><br>
0180: .<strong>504 Connect to curl.haxx.se:80 failed: Connection refus
01c0: ed</strong></p>.<hr>Generated Sat, 11 Feb 2012 17:29:20 CET by P
0200: olipo on <em>localhost:8118</em>..</body></html>
== Info: Connection #0 to host 127.0.0.1 left intact
== Info: Closing connection #0

Any help will be appreciated.

Cheers,
ciro

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-02-11