这是一个网友写的东东,用的是xmlhttp
<%
Function getHTTPPage(url)
' on error resume next
dim http
set http=Server.createobject(Microsoft.XMLHTTP)
Http.open GET,url,false
Http.send()
if Http.readystate<>4 then
exit function
end if
getHTTPPage=bytesToBSTR(Http.responseBody,GB2312)
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
url=http://edu.cvv.cn/3w/;
action=request.querystring(url)
if action<> then
url= url & action
else
url= url & main.asp
end if
xml=getHTTPPage(url)
xml=Replace(xml,src=',src='http://edu.cvv.cn/3w/;)
xml=Replace(xml,href=',href='xml.asp?url=)
xml=Replace(xml,background=',background='http://edu.cvv.cn/3w/;)
Response.write xml
%>