Re: @help! a "no proxy setting"problem

Michael Mauch <[email protected]>
Newsgroups gmane.comp.web.galeon.user
Message-ID <20041120155637.GA10166@elmicha.333200002251-0001.dialin.t-online.de>
philloid T. wrote:

> i want the urls beginning with "10." not use the proxy,how? thank u
> 
> ps:i have tried both "10.*" & "10.0.0.0/8", but it's not working at 
> 
> all .

You could create a .pac file and put it in the Autoconfiguration URL
field (Automatic proxy configuration). I'm not sure if you have to put
the file on a web server (to use a http:// URL); maybe file:/// works,
too.

The .pac file would look something like this:

function FindProxyForURL(url, host)
{
  if(url.substring(0, 10) == "http://10.")
    return "PROXY your.proxy.example.com; DIRECT";
  else
    return "DIRECT";
}

Google for "FindProxyForURL" to see what functions you can use in the
.pac file.

Regards...
		Michael


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.