Re: (pdf) download size

mi <[email protected]>
Newsgroups gmane.network.wwwoffle.user
Message-ID <20040721022207.44765f8b@woody>
Unfortunately, this does not work (for Galeon 1.3-15) to show the size of a pdf download by leaving
it completely to the browser....perhaps still something is wrong in the code ?


wwwoffle.pac:

// WWWOFFLE Version 2.7 - Proxy autoconfiguration script
// See: http://www.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html
// You should replace 'localhost:8080' with the proxy hostname and port number
// if required.

function FindProxyForURL(url, host)
{

if(isPlainHostName(host))
    return "DIRECT";

// XXX inserted by --mi:
 else
    if(shExpMatch(url,"*.pdf") || (shExpMatch(url,"*.zip"))
	return "DIRECT";

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



-- 
mi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.