<%
url = "http://www.remotesite.com/out.asp"
' add a BASE HREF tag for remote page which has relative image URLs, or style sheets, or JavaScript files, or frames, or links
Response.Write "<base href='" & url & "' />"
Set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.Open "GET", url, false
xmlhttp.Send ""
Response.Write xmlhttp.ResponseText
Set xmlhttp = Nothing
%>
<%
url = "http://www.remotesite.com/out.asp"
Set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.Open "POST", url, false
xmlhttp.SetRequestHeader "Content-Type", "application/x-www-form-urlencoded"
xmlhttp.Send "x=1&y=2"
Response.Write xmlhttp.ResponseText
Set xmlhttp = Nothing
%>