cURL
Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Archives

IP address support for no proxy feature

From: Salisbury, Mark <mark.salisbury_at_hp.com>
Date: Wed, 11 Nov 2009 22:12:13 +0000

Hello,

I would like to submit a patch to allow IP addresses to be included in the list of no proxy hosts.

Currently the no proxy logic allows for domain names to be specified. For instance, specifying "hp.com" will prevent the proxy from being used for accessing all hosts that end in "hp.com". However, if I want to prevent the proxy from being used for a range of IP addresses I don't have any way to do this, since the logic in check_noproxy only compares the end of the requested host against the entry in the no proxy list.

With this change, it is possible to specify a no proxy list like "192.168.*", which would prevent the proxy from being used to access any host that begins with "192.168.", for instance http://192.168.0.1/ would not go through the proxy server with this change.

 I created a short list of hosts and a no proxy list with this change and could not see any ill side effects from this change.

I used Tortoise SVN to create my patch, against a repository where I have libcurl code checked in (version 7.19.7).

Thanks,
Mark Salisbury
Hewlett-Packard Company

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2009-11-11

These mail archives are generated by hypermail.

donate! Page updated November 16, 2009.
web site info

File upload with ASP.NET