dim sUrl
sUrl="http://travel.state.gov/visa/frvi_bulletincurrent.html"
Function streamtochar(StrStream)
set stream=CreateObject("ADODB.Stream")
stream.type=1
stream.Mode=3
stream.Open
stream.Write Strstream
stream.Position= 0
stream.Type= 2
stream.Charset="gb2312"
streamtochar= stream.ReadText
stream.Close
set stream=nothing
End Function
i = i + 1
function getContentByUrl(url)
set XmlHttp = CreateObject("MSXML2.XMLHTTP")
XmlHttp.open "GET",url,false
XmlHttp.send
getContentByUrl = streamtochar(oXmlHttp.responseBody)
set XmlHttp=nothing
end function
function getRealContent(url)
sContent = getContentByUrl(url)
getRealContent=sContent
end function
html= getContentByUrl(surl)
url_start=inStr(html," " ) url_end=inStr(html," ")
sUrl="http://travel.state.gov/visa/frvi_bulletincurrent.html"
Function streamtochar(StrStream)
set stream=CreateObject("ADODB.Stream")
stream.type=1
stream.Mode=3
stream.Open
stream.Write Strstream
stream.Position= 0
stream.Type= 2
stream.Charset="gb2312"
streamtochar= stream.ReadText
stream.Close
set stream=nothing
End Function
i = i + 1
function getContentByUrl(url)
set XmlHttp = CreateObject("MSXML2.XMLHTTP")
XmlHttp.open "GET",url,false
XmlHttp.send
getContentByUrl = streamtochar(oXmlHttp.responseBody)
set XmlHttp=nothing
end function
function getRealContent(url)
sContent = getContentByUrl(url)
getRealContent=sContent
end function
html= getContentByUrl(surl)
url_start=inStr(html," " )
上一篇:简单WEB开发规范(修正版)
下一篇:用python实现面向对像的ASP程序.
相关信息
- 关于本站 - 网站帮助 - 广告合作 - 下载声明 - 友情连接 - 网站地图 - 管理登陆
- Copyright © 2003-2007 ZhuYe123.COM. All Rights Reserved . 粤ICP备05072659号
- 致力于中国个人网站发展,我们一直在努力!