六月婷婷综合激情-六月婷婷综合-六月婷婷在线观看-六月婷婷在线-亚洲黄色在线网站-亚洲黄色在线观看网站

明輝手游網中心:是一個免費提供流行視頻軟件教程、在線學習分享的學習平臺!

獲得遠程的文件,獲得遠程HTML文件源碼

[摘要]獲得遠程的文件response.write getHTTPPage("http://www.csdn.net")function getHTTPPage(url) on error resume next dim http set http=Server.createob...
 

獲得遠程的文件

response.write getHTTPPage("http://www.csdn.net")

function getHTTPPage(url)
 on error resume next
 dim http
 set http=Server.createobject("Msxml2.XMLHTTP")
 Http.open "GET",url,false
 Http.send()
 if Http.readystate<>4 then exit function
 getHTTPPage=bytes2BSTR(Http.responseBody)
 set http=nothing
 if err.number<>0 then err.Clear 
end function

Function bytes2BSTR(vIn)
 dim strReturn
 dim i,ThisCharCode,NextCharCode
 strReturn = ""
 For i = 1 To LenB(vIn)
  ThisCharCode = AscB(MidB(vIn,i,1))
  If ThisCharCode < &H80 Then
   strReturn = strReturn & Chr(ThisCharCode)
  Else
   NextCharCode = AscB(MidB(vIn,i+1,1))
   strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 + CInt(NextCharCode))
   i = i + 1
  End If
 Next
 bytes2BSTR = strReturn
End Function

--------------------------------------------------------------------

獲得遠程HTML文件源碼

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
</head>

<body>
<div id="demo"> <div style="width: 677; height: 70">

</body>

</html>
<script language=vbscript>
sub b3_onclick 
  Dim objXMLHTTP, xml
  Set xml = CreateObject("Microsoft.XMLHTTP")
 
  xml.Open "GET", "http://192.168.8.15:7001/wap_manage/login.asp", False
  ' Pull the data from the web page
  xml.Send
  'demo.innerhtml= xml.responseText
  'demo.innertext= xml.responseText
  demo.innertext= bytes2BSTR(xml.responsebody)
  Set xml = Nothing
end sub

sub d1_select

end sub

Function bytes2BSTR(vIn)
    Dim strReturn
    Dim I, ThisCharCode, NextCharCode
    strReturn = ""
    For I = 1 To LenB(vIn)
        ThisCharCode = AscB(MidB(vIn, I, 1))
        If ThisCharCode < &H80 Then
            strReturn = strReturn & Chr(ThisCharCode)
        Else
            NextCharCode = AscB(MidB(vIn, I + 1, 1))
            strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 + CInt(NextCharCode))
            I = I + 1
        End If
    Next
    bytes2BSTR = strReturn
End Function
 
</script>
<input type="button" value="獲取html源碼" name="B3">





主站蜘蛛池模板: 日本高清视频色 | 亚洲乱码在线 | 伊人久久大香线蕉综合热线 | 亚洲成a人片777777久久 | 色影影院| 日本性网 | 亚洲精品综合网 | 日韩欧美不卡在线 | 日本一区中文字幕 | 视频一区二区精品的福利 | 中文字幕精品波多野结衣 | 欧美午夜成年片在线观看 | 中文字幕第35页 | 日本韩国三级观看 | 深夜视频免费在线观看 | 青青在线视频免费看观看 | 亚洲草逼 | 四虎免费最新在线永久 | 亚洲 日本 欧美 中文幕 | 日韩成人精品在线 | 青娱乐最新地址 | 亚洲va精品中文字幕 | 欧美午夜色大片在线观看免费 | 日韩在线影院 | 色噜噜狠狠大色综合 | 青青草免费公开视频 | 亚洲天堂视频在线免费观看 | 小小的日本动漫在线观看免费高清 | 亚洲国产成人久久综合一区 | 亚洲成a人片在线观看播放 亚洲成a人片在线观看www | 日本精品不卡 | 日韩三级在线观看视频 | 四虎国产永久在线观看 | 中文有码中文字幕免费视频 | 五月天激情在线 | 日本伊人色| 日本mv精品中文字幕 | 日本一区二区视频在线 | 欧美亚洲国产精品久久久 | 日韩欧美在线综合网高清 | 在线免费午夜视频 |