<%
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
url="
http://zg.jiaxing.gov.cn/weather/weather_823.asp"
if trim(url)<>"" then
set xml = Server.CreateObject("MSXML2.XMLHTTP.5.0")
xml.open "GET",url, False
xml.send
bo = BytesToBstr(xml.ResponseBody,"gb2312")
if Instr(bo,"<MARQUEE")<>0 then
bo=Right(bo,len(bo)-Cint(Instr(bo,"<MARQUEE"))+1)
bo=Left(bo,Cint(instr(bo,"</body>"))-1)
response.Write(bo)
end if
set xml = nothing
end if
%>