I'm hoping that other sites have experienced this problem and have a
solution to this.  If not, if anyone knows of a more appropriate
forum in which to ask this question, I'd be grateful.

We have automatic proxy set up here working for both netscape and
linux.  In general, it works well, but more recently we have a lot
more people doing local web/cgi development work under linux and found
that netscape is acting very brain-dead when accessing the URL

        http://localhost/

What is happening is that netscape ATTEMPTS TO CONSULT THE PROXY
SERVER for the URL.  When the box is offline (eg, the box is connected
to the proxy occasionally over dialup ppp, or whatever), then you get
a network error about not able to find the proxy server.  When online,
you get back an error message from the proxy (and rightly so too:)

No other network application does this... they all resolve localhost
correctly and behave as expected.  Netscape is totally brain-dead
about this.

The real solution is to fix netscape, but one way we are attempting to
resolve this is to specifically mention "localhost" in the proxy
autoconfig file to do make it return DIRECT in this case.

For example:

function FindProxyForURL(url, host)
  {
    if (isPlainHostName(host) ||
        isPlainHostName("localhost") ||
        dnsDomainIs(host, ".usq.edu.au"))
      return "DIRECT";
    else if (isInNet(host, "127.0.0.1", "255.0.0.0"))
      return "DIRECT";
    else 
      return "PROXY proxy.usq.edu.au:8000; PROXY proxy1.usq.edu.au:8000; ;
  }

This doesn't work (for this particular config, *all* requests are
going direct and none through the proxy).

Does anyone here know how to get http requests to localhost to go
direct and not to the proxy server?

Many thanks for any help.

Cheers
Tony
 -=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-
  Tony Nugent <[EMAIL PROTECTED]>           <[EMAIL PROTECTED]>
  Computer Systems Officer                       Faculty of Science
  University of Southern Queensland, Toowoomba Oueensland Australia
 -=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-

Reply via email to