人人做人人澡人人爽欧美,国产主播一区二区,久久久精品五月天,羞羞视频在线观看免费

當前位置:蘿卜系統下載站 > 技術開發教程 > 詳細頁面

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

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

更新時間:2022-08-16 文章作者:未知 信息來源:網絡 閱讀次數:

 

獲得遠程的文件

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">


溫馨提示:喜歡本站的話,請收藏一下本站!

本類教程下載

系統下載排行

網站地圖xml | 網站地圖html
主站蜘蛛池模板: 盐池县| 东城区| 岳池县| 莱芜市| 儋州市| 襄樊市| 永兴县| 安阳县| 达尔| 同江市| 芜湖县| 清原| 军事| 阳原县| 香河县| 筠连县| 陇南市| 阆中市| 定结县| 基隆市| 榆树市| 邹平县| 东光县| 西华县| 琼海市| 措美县| 永仁县| 南靖县| 秦皇岛市| 绥宁县| 南安市| 潢川县| 利辛县| 武城县| 济阳县| 开原市| 八宿县| 左权县| 澜沧| 荣成市| 隆安县|