Re: proxy.pac

From: Dancer <dancer@dont-contact.us>
Date: Thu, 11 Nov 1999 03:32:46 +0000

Milda Mimiene wrote:
>
> Hi, eveyone on this list
>
> I have some problems with proxy.pac. It works well for Netscape 4.5 but
> doesn't for IE5. In this case when proxy goes down connections become
> automatically direct and it works only for Netscape browsers, with IE5
> browsers users get an error message. Maybe I wrote something wrong. Here
> is my proxy.pac
>
> function FindProxyForURL(url, host)
> {
> if (url.substring(0, 5) != "http:" || isPlainHostName(host) ||
> dnsDomainIs(host, ".ktu.lt") ||
> dnsDomainIs(host, ".litnet.lt"))
> return "DIRECT";
> else if (shExpMatch(host, "*.lt"))
> return "PROXY 193.219.61.9:8080; DIRECT";
> else
> return "PROXY proxy.ktu.lt:8080; DIRECT";
>
> }

You missed the semi-colon after the DIRECT:

 return "PROXY proxy.ktu.lt:8080; DIRECT;";

However, some versions of IE read the list from right to left, so:

 return "PROXY proxy.ktu.lt:8080; DIRECT; PROXY proxy.ktu.lt:8080;";

..is probably better.

D
Received on Wed Nov 10 1999 - 20:55:34 MST

This archive was generated by hypermail pre-2.1.9 : Wed Apr 09 2008 - 11:57:32 MDT