> -----Original Message-----
> From: Matt [mailto:[EMAIL PROTECTED]

> 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.

Reply via email to