michael <[EMAIL PROTECTED]> writes:

> Juraj Variny <[EMAIL PROTECTED]>:
> 
> > You need to modify the browser autoconfiguration file named wwwoffle.pac.
> > See:
> >  http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html
> 
> I'm no programmer, and never looked at java.
> Perhaps someone can help me here ?

It is Javascript rather than Java, they are quite different things.

> Can i make it:
> 
> function FindProxyForURL(url, host)
> {
>  if(isPlainHostName(host))
>     return "DIRECT";
>  else
>       if(shExpMatch(url, "*.pdf") is true)

I think that this line above just needs to be:

        if(shExpMatch(url, "*.pdf"))

>       return "DIRECT";
>  else 
>       if((url.substring(0, 5) == "http:") || (url.substring(0, 4) == "ftp:"))
>       return "PROXY localhost:8080; DIRECT";
>   else
>        return "DIRECT";
> }

The rest of this looks correct.  The best thing to do is just to try
it.


> > It is small piece of javascript. If you aren't programmer at all, setting
> > WWWOFFLE to disable caching of PDFs may be sufficient.
> > Juraj
> Nope. Always was disabled here, but galeon reports no size.

If the file is cached or not then WWWOFFLE will still remove the size
line from the incoming header (if there was a size specified in the
first place).

-- 
Andrew.
----------------------------------------------------------------------
Andrew M. Bishop                             [EMAIL PROTECTED]
                                      http://www.gedanken.demon.co.uk/

WWWOFFLE users page:
        http://www.gedanken.demon.co.uk/wwwoffle/version-2.8/user.html

Reply via email to