<% @LANGUAGE = "VBSCRIPT" codepage= "CP_ACP"%>
<meta http-equiv= "Content-type" content= "text/html; Charset=shift-jis ">
<script language= "JavaScript" >
<!--
function SelText () {
var orangeref = Document.body.createTextRange ();
alert (Orangeref.text);
}
-->
</SCRIPT>
<%
function gethttppage (URL)
Dim Http
Set Http=server.createobject ("MSXML2. XMLHTTP ")
' Http.open ' get ', url,false
Http.open "POST", Url,false
Http.send ()
If Http.readystate<>4 Then
Exit function
End If
' Gethttppage=bytestobstr (http.responsebody, "GB2312")
Gethttppage=bytestobstr (Http.responsebody, "Shift-jis")
Set http=nothing
If Err.number<>0 Then
Err. Clear
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
%>
<title></title>
<body >
<%
Dim url,html
' Url= ' http://localhost/CSharpWebAppTest/WebForm1.aspx?tmp=33333 '
' Url=http://localhost/csharpwebapptest/webform1.aspx
Url= "http://www.whois.sc/221.216.169.120"
' Url= ' http://localhost/akira/default.asp '
Html = Gethttppage (URL)
Response.Write Html
%>
</body>