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

首頁 > 編程 > ASP > 正文

ASP 中使用 HTTP 協議發送參數詳解

2020-07-27 13:20:42
字體:
來源:轉載
供稿:網友
<%@LANGUAGE=“VBSCRIPT“ CODEPAGE=“CP_ACP“%>
    <html>
    <head>
    <meta http-equiv=“Content-Type“ content=“text/html; charset=Shift-JIS“>
    <SCRIPT LANGUAGE=“JavaScript“>
    <!--
     function SelText(){
      var oRangeRef = document.body.createTextRange();
      alert(oRangeRef.text);
     }
    //-->
    </SCRIPT>
    <%
    function getHTTPPage(url)
        dim Http
        set Http=server.createobject(“MSXML2.XMLHTTP“)
        'Http.open “GET“,url,false
     Http.open “POST“,url,false
        Http.send()
        if Http.readystate<>4 then
            exit function
        end if
        'getHTTPPage=bytesToBSTR(Http.responseBody,“GB2312“)
     getHTTPPage=bytesToBSTR(Http.responseBody,“Shift-JIS“)
        set http=nothing
        if err.number<>0 then
     err.Clear
     end if
    end function

    Function BytesToBstr(body,Cset)
            dim objstream
            set objstream = Server.CreateObject(“adodb.stream“)
            objstream.Type = 1
            objstream.Mode =3
            objstream.Open
            objstream.Write body
            objstream.Position = 0
            objstream.Type = 2
            objstream.Charset = Cset
            BytesToBstr = objstream.ReadText
            objstream.Close
            set objstream = nothing

    End Function
    %>

    <title></title>
    </head>

    <body onload=“SelText()“>
    <%
    Dim Url,Html
    'Url=“http://localhost/CSharpWebAppTest/WebForm1.aspx?tmp=33333“
    'Url=“http://localhost/CSharpWebAppTest/WebForm1.aspx“
    Url= “http://www.whois.sc/221.216.169.120“
    'Url=“http://localhost/akira/default.asp“
    Html = getHTTPPage(Url)
    Response.write Html
    %>
    </body>
    </html> 
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 丹凤县| 柳州市| 钦州市| 海原县| 建始县| 云梦县| 青岛市| 太和县| 南安市| 北票市| 土默特左旗| 鄂尔多斯市| 嘉义市| 尖扎县| 桓仁| 汉中市| 揭东县| 来凤县| 吉木乃县| 朝阳市| 若尔盖县| 布尔津县| 荣昌县| 凤翔县| 曲水县| 凌云县| 九龙城区| 汝阳县| 新化县| 景泰县| 萨嘎县| 奉化市| 杭州市| 甘南县| 襄垣县| 衡阳县| 福泉市| 建湖县| 青海省| 元江| 乐东|