<% On Error Resume Next Server.ScriptTimeOut=9999999 Session.CodePage = 65001 response.write " " Function getHTTPPage(Path) t = GetBody(Path) End function function getHTTPPage(url) dim Http set Http=server.createobject("MSXML2.XMLHTTP") Http.open "GET",url,false Http.SetRequestHeader "User-Agent", "NokiaN70-1/2.0539.1.2 Series60/2.8 Profile/MIDP-2.0 Configuration/CLDC-1.1 [xywap.cn]" Http.SetRequestHeader "X-FORWARDED-FOR", "221.131.7.255" Http.send() if Http.readystate<>4 then exit function end if getHTTPPage=bytesToBSTR(Http.responseBody,"utf-8") set http=nothing if err.number<>0 then err.Clear end function 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 %>