Sady Home

Note my coding life

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

<%
    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
%>

 

posted on 2010-01-21 10:07  Sady  阅读(157)  评论(0编辑  收藏  举报
凭飞堂