プロバイダ各社の proxy autoconfig を比較してみる
■ このスレッドは過去ログ倉庫に格納されています
00011
02/11/15 14:53ID:???IE や NC 等の Proxy Auto-Config File を比較してみるスレです。
参考URL
Navigator Proxy Auto-Config File Format
http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html
00021
02/11/15 14:57ID:???J-COM 東東京
//-Pacfile version 1.1
function FindProxyForURL(url, host)
{
var i;
var str;
if (
shExpMatch(url, "https://*") ||
shExpMatch(url, "news://*") ||
shExpMatch(url, "snews://*") ||
shExpMatch(url, "ftp://*@*") ||
shExpMatch(url, "http://ads*.home.net/*") ||
shExpMatch(url, "http://localhost/*") ||
shExpMatch(url, "http://localhost:*/*") ||
shExpMatch(url, "http://www:4000/*") ||
shExpMatch(url, "http://www.home.com:4000/*") ||
shExpMatch(url, "http://www.home.net:4000/*") ||
shExpMatch(url, "http://www.*.home.com:4000/*") ||
shExpMatch(url, "http://www.*.home.net:4000/*") ||
shExpMatch(url, "http://*.excite.ca/whereami*") ||
shExpMatch(url, "http://*.excite.com/whereami*") ||
shExpMatch(url, "http://*.heat.net/cgi-bin/*") ||
shExpMatch(url, "http://*.heat.net/*/cgi-bin/*") ||
0
) {
return("DIRECT");
}
(つづく)
00031
02/11/15 15:01ID:???var num = (1 + (url.length % 2));
str = ("PROXY proxy" + num + ".kasiw1.kn.home.ne.jp" + ":8080; ");
for (i = 1; i <= 2; i++) {
if (i != num) {
str += ("PROXY proxy" + i + ".kasiw1.kn.home.ne.jp" + ":8080; ");
}
}
str += "DIRECT";
return(str);
}
■ このスレッドは過去ログ倉庫に格納されています