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

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

獲得遠程的文件,獲得遠程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在线观看 | 清清草视频在线 | 最近中文字幕无吗高清免费视频 | 五月综合激情视频在线观看 | 亚洲色欲色欲www | 我看黄色一级片 | 四虎免费影院4hu永久免费 | 伊人影片 | 奇米狠狠 | 青草成人 | 永久免费精品影视网站 | 色综合97天天综合网 | 亚洲最大的成人网 | 婷婷综合影院 | 在线观看视频h | 欧美中文一区 | 亚洲欧美在线视频观看 | 天天爽夜夜爽天天做夜夜做 | 伊人久久大香现线蕉 | 欧美一区二区三区在观看 | 在线亚洲精品中文字幕美乳 | 中文字幕第315页 | 亚洲福利天堂 | 欧美特黄一免在线观看 | 中文字幕一区婷婷久久 | 又粗又硬又爽的三级视频 | 亚欧洲精品bb | 中国黄色www| 新婚被黑人睡走中文字幕 | 日韩深夜视频 | 天堂网在线网站成人午夜网站 | 欧美视频网站在线观看 | 三级经典三级日本三级欧美 | 色婷婷六月 | 天天摸夜夜操 | 日韩黄网| 欧美一级淫片a免费播放口aaa | 日本一本在线观看 | 影音先锋精品国产资源 | 伊人在综合 |