ASPは、主にAjaxと協力するためにゲートウェイの制限などを突破するために使用できるWebプロキシソフトウェアを書き込みます(Firefoxにはクロスドメインアクセスの問題があります)バージョン0.1著者Llinzzi
関数
ウェブサイトのエンコーディングを決定し、あらゆる言語をサポートします
ハイパーコネクションの自動変換
画像をリモートでダウンロードする関数
問題は解決されていません。現在、ウェブサイトコード、写真、その他のデータのプロキシにのみ使用できるプロキシ転送は完了していません。
コードコピーは次のとおりです。
<%@言語= "javascript" codepage = "65001"%>
<%response.charset = "utf-8"%>
<%
server.scripttimeout = 9999999;
varsurl = string(request.querystring( "url"));
if(surl == "undefined"){
Response.write( "<pstyle =/" font-size:9pt; margin:30px; padding:10px; text-align:center; background-color:#ffccc; border:1pxsolid#999999;/"> asp proxy byllinzzi </p>");
Response.write( "<divstyle =/" font-size:9pt; margin:30px; text-align:center; background-color:#fffcc; border:1pxsolid#999999;/">");
Response.write( "<formaction =/"#/"method =/" get/">");
Response.write( "<pstyle =/" font-size:9pt; margin:5px; text-align:center;/"> url </p>"を入力してください</p> ");
respons.write( "<p> <inputstyle =/" background-color:#ffccc; border:1pxsolid#999999;/"type =/" text/"name =/" url/"> </p>");
respons.write( "<p> <inputstyle =/" background-color:#ffccc; border:1pxsolid#999999;/"type =/" submit/"value =/" goweb/"> </p>");
respons.write( "</div>");
}
elseif(surl == ""){
Response.write( "<pstyle =/" font-size:9pt; margin:30px; padding:10px; text-align:center; background-color:#ffccc; border:1pxsolid#999999;/"> asp proxy byllinzzi </p>");
Response.write( "<divstyle =/" font-size:9pt; margin:30px; text-align:center; background-color:#fffcc; border:1pxsolid#999999;/">");
Response.write( "<p>アドレスは空です。www.tom.com </p>"として形式を入力してください</p> ");
respons.write( "</div>");
}
それ以外{
surl =(surl.substr(0,7)!= "http://")? "http://"+surl:surl;
Response.write(send_request(surl));
}
functionsend_request(url){
varcodedText;
http_request = server.createObject( "microsoft.xmlhttp");
試す{
http_request.open( "get"、url、false);
http_request.send(null);
}
キャッチ(e)
{
Response.write(e.description);
}
if(http_request.readystate == 4){
//エンコード開始を自動的に決定します