Re: Squid & Netscape "shortcut"

From: Tom Minchin <tom@dont-contact.us>
Date: Thu, 7 Aug 1997 12:38:22 +1000 (EST)

> Jonathan Larmour wrote:
>
> > The only problem is if either the browser or other parts of squid
> > complain
> > about no protocol (i.e. http://). I don't have Netscape, so I can't
> > test this.
> >
> > Try just typing in apple in Netscape and seeing what gets logged in
> > access.log (if anything).
>
> It doesn't seem to go through squid. ie. there was no entry in
> access.log.
>
Early versions of Netscape (the 2 series) had a bug. If you tried to do
the 'apple' shortcut the browser would attempt to go direct (ignoring all
proxy settings).

Version 3 and 4 using a Automatic Proxy Configuration file to access a
Squid proxy will do the shortcut, manual proxies do not work.

My personal opinion is that this feature is misinformation. DNS isn't
supposed to be used like this (after all it's rather simplistic to
just add www. and .com to the string and see what you get).

Here's a copy of my proxy.pac file that works.

---
function FindProxyForURL(url, host)
{
if (url.substring(0,6) == "https:" ||
   url.substring(0,6) == "snews:")
        {
        return "DIRECT";
        }
else
        {
if (isPlainHostName(host) ||
dnsDomainIs(host, ".local.com.au")
|| dnsDomainIs(host, ".neighbour.com.au")
|| isInNet(host, "203.200.0.0", "255.255.0.0")
)
return "DIRECT";
else
return "PROXY proxy1.some.com.au:8080; PROXY proxy2.some.com.au:8080; proxy3.some.com.au:8080; DIRECT";
        }
}
---
Received on Wed Aug 06 1997 - 19:44:53 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:36:02 MST