cURL / Mailing Lists / curl-users / Single Mail

curl-users

[ curl-Bugs-547484 ] no_proxy and port numbers

From: <noreply_at_sourceforge.net>
Date: Tue, 23 Apr 2002 03:01:36 -0700

Bugs item #547484, was opened at 2002-04-23 12:01
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=100976&aid=547484&group_id=976

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Erwan Legrand (pupeteer)
Assigned to: Nobody/Anonymous (nobody)
Summary: no_proxy and port numbers

Initial Comment:
The no_proxy (or NO_PROXY) env. variable is not used
properly by cURL when a port is specified in the URL.

Example : (Assume http servers are listening on ports
80 an 8888 on localhost)

$ export no_proxy=localhost

The following commands will succeed :

$ wget http://localhost/
$ lynx http://localhost/
$ curl http://localhost/
$ wget http://localhost:8888/
$ lynx http://localhost:8888/

While this one will fail :

$ curl http://localhost:8888/

It appears that curl does not properly handle (remove)
port numbers when checking host names against the
no_proxy variable.

This is pretty annoying as soon as you are behind a
proxy and run servers on the local network/host.

Anyway, curl is a very useful piece of software. Thanks
for making it exist.

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

You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=100976&aid=547484&group_id=976
Received on 2002-04-23