Package: curl
Version: 7.37.0-1
curl uses 1080 as the default port for http_proxy:
$ export http_proxy=http://localhost/
$ curl http://www.debian.org/
curl: (7) Failed to connect to localhost port 1080: Connection refused
But 1080 is port for SOCKS. The default port for HTTP is 80, and this
is what other HTTP cliensts use:
$ wget http://www.debian.org/
--2014-05-24 21:22:01-- http://www.debian.org/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:80... failed: Connection refused.
$ GET http://www.debian.org/
Can't connect to localhost:80 (Connection refused)
LWP::Protocol::http::Socket: connect: Connection refused at
/usr/share/perl5/LWP/Protocol/http.pm line 41.
$ apt-get -o Acquire::http::Proxy=http://localhost/ download curl
Err http://ftp.debian.org/debian/ unstable/main curl i386 7.37.0-1
Could not connect to localhost:80 (127.0.0.1). - connect (111: Connection
refused)
E: Failed to fetch
http://ftp.debian.org/debian/pool/main/c/curl/curl_7.37.0-1_i386.deb Could not
connect to localhost:80 (127.0.0.1). - connect (111: Connection refused)
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64
Kernel: Linux 3.14-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages curl depends on:
ii libc6 2.18-7
ii libcurl3 7.37.0-1
ii zlib1g 1:1.2.8.dfsg-1
--
Jakub Wilk
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org