RE: [squid-users] Proxy.pac Port

From: David Brodbeck <DavidB@dont-contact.us>
Date: Thu, 6 May 2004 11:57:55 -0400

> -----Original Message-----
> From: Matt [mailto:matt@fileholder.net]

> function FindProxyForURL(url, host)
> {
> if (url.substring(0, 5) == "http:") {
> return "PROXY my.proxy:8080";
> }
> else {
> return "DIRECT";
> }
> }
>
> for instance the above wont work. If it has an "http:" in url it gets
> redirected. What if someone enters www.mydomain.com I still
> want it to go.

It will still go. "www.mydomain.com" is converted to
"http://www.mydomain.com/" in the browser, before the proxy sees it. It
isn't a valid URL on its own. I use the construction you show above and it
works fine.

> And if someone enters www.mydomain.com:8080 I do not want it to go.

This is a genuine problem, though.
Received on Thu May 06 2004 - 09:58:08 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Jun 01 2004 - 12:00:01 MDT