最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

ASP 中使用 HTTP 協(xié)議發(fā)送參數(shù)詳解

 更新時(shí)間:2006年12月21日 00:00:00   作者:  
<%@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> 

相關(guān)文章

最新評(píng)論

保靖县| 沙雅县| 巫山县| 凤阳县| 蒲江县| 朔州市| 连江县| 武城县| 白城市| 庐江县| 桐乡市| 南召县| 宜城市| 叙永县| 堆龙德庆县| 固始县| 荣昌县| 恩施市| 连州市| 濮阳市| 鱼台县| 永春县| 永嘉县| 大港区| 岫岩| 治多县| 浪卡子县| 镇坪县| 望城县| 九龙城区| 鲁甸县| 仁化县| 札达县| 渝北区| 府谷县| 北海市| 盈江县| 泰安市| 房产| 金阳县| 贵州省|