国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 編程 > ASP > 正文

Web代理(Asp版)

2024-05-04 11:02:51
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友
asp寫(xiě)Web代理軟件,可以用作突破網(wǎng)關(guān)限制等,主要是為了配合Ajax使用的(因Firefox存在跨域訪問(wèn)的問(wèn)題) 版本 0.1 作者 LlinZzi
功能
判斷網(wǎng)站編碼,支持任何語(yǔ)言
超連接自動(dòng)轉(zhuǎn)換
附帶一個(gè)遠(yuǎn)程下載圖片的函數(shù)
未解決問(wèn)題,目前只能用來(lái)代理網(wǎng)站代碼,圖片等其他數(shù)據(jù)的代理轉(zhuǎn)發(fā)尚未完成。
復(fù)制代碼 代碼如下:
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>
<%Response.Charset = "utf-8"%>
<%
Server.ScriptTimeout=9999999;

var Surl = String(Request.QueryString("url"));
if(Surl == "undefined"){
Response.Write("<p style=/"font-size:9pt;margin:30px;padding:10px;text-align:center;background-color:#FFCCCC;border: 1px solid #999999;/">Asp代理 by Llinzzi</p>");
Response.Write("<div style=/"font-size:9pt;margin:30px;text-align:center;background-color:#FFFFCC;border: 1px solid #999999;/">");
Response.Write("<form action=/"#/" method=/"get/" >");
Response.Write("<p style=/"font-size:9pt;margin:5px;text-align:center;/">請(qǐng)輸入網(wǎng)址</p>");
Response.Write("<p><input style=/"background-color: #FFCCCC;border: 1px solid #999999;/" type=/"text/" name=/"url/"></p>");
Response.Write("<p><input style=/"background-color: #FFCCCC;border: 1px solid #999999;/" type=/"submit/"  value=/"GoWeb/"></p>");
Response.Write("</div>");
}
else if(Surl == ""){
Response.Write("<p style=/"font-size:9pt;margin:30px;padding:10px;text-align:center;background-color:#FFCCCC;border: 1px solid #999999;/">Asp代理 by Llinzzi</p>");
Response.Write("<div style=/"font-size:9pt;margin:30px;text-align:center;background-color:#FFFFCC;border: 1px solid #999999;/">");
Response.Write("<p>地址為空,請(qǐng)格式輸入 如 www.tom.com </p>");
Response.Write("</div>");
}
else{
Surl = (Surl.substr(0,7) != "http://") ? "http://"+Surl : Surl;
Response.Write(send_request(Surl));
}

function send_request(url) {
    var codedtext;
    http_request = Server.CreateObject("Microsoft.XMLHTTP");
    try{
    http_request.Open("GET",url,false);
    http_request.Send(null);
    }
    catch(e)
    {
    Response.Write(e.description);
    }
    if (http_request.ReadyState == 4){
        //自動(dòng)判斷編碼開(kāi)始
發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 胶南市| 兰溪市| 开封县| 自贡市| 济宁市| 贞丰县| 沾益县| 永丰县| 扶余县| 皮山县| 诸城市| 定远县| 信宜市| 阿拉善左旗| 松阳县| 武功县| 屏边| 洛南县| 麦盖提县| 岳池县| 咸丰县| 将乐县| 隆化县| 沧州市| 平度市| 清水县| 瓦房店市| 江油市| 海淀区| 炎陵县| 临洮县| 唐海县| 翼城县| 无锡市| 资中县| 封丘县| 游戏| 仙游县| 咸阳市| 上蔡县| 榆林市|