cURL / Mailing Lists / curl-library / Single Mail


Re: [PATCH] url: use proper default port for HTTP proxy

From: Michael Wood <>
Date: Sun, 25 May 2014 18:30:00 +0200

On 25 May 2014 3:16 PM, "Alessandro Ghedini" <> wrote:
> On dom, mag 25, 2014 at 11:17:25 +0000, Yehezkel Horowitz wrote:
> > >As reported at, 1080 is the default port
for socks (as defined by IANA), but http proxies use 80 as default (which
is what e.g.
> > wget does).
> >
> > I had the impression that default port of http proxies is 8080, but I
might be wrong...
> I couldn't find any reference for using 8080 as default. Since all other
> clients (wget, libwww-perl, ...) use 80, I don't see why curl should be
> different though.

Wikipedia says:

"HTTP alternate (http_alt)—commonly used for Web proxy and caching server,
or for running a Web server as a non-root user"

Squid uses 3128 by default last time I looked. I see that Wikipedia says:

"Web caches and the default for the Squid (software)"

So I would not say 8080 is a default. As far as I am concerned, you should
not assume libcurl will have any default port for an HTTP proxy, because it
is not standardised.

List admin:
Received on 2014-05-25