str="xxxx.asp"
x = new ActiveObject("Microsoft.XMLHTTP")
x.open("POST",URL,false)
x.send(str)

解决方案 »

  1.   

    str="xxxx.asp"
    x = new ActiveObject("Msxml2.XMLHTTP")
    x.open("POST",URL,false)
    x.setRequestHeader ("Content-Type","application/x-www-form-urlencoded")
    x.setRequestHeader ("Content-Length",str.length)
    x.send(str)
      

  2.   

    <input type=text value="Http://10.70.38.10/" id="URLID">
    <input type=button value="XMLHTTP" onclick="DownURL()">
    <script>
    function DownURL()
    {
    var xmlHTTP=new ActiveXObject("Microsoft.XMLHTTP");
    xmlHTTP.open("POST",URLID.value,false);
    xmlHTTP.send();
    //window.confirm(xmlHTTP.responseText);
    BodyID.value=xmlHTTP.responseText;
    }
    </script>
    <br>
    <textarea cols=100% rows=10 id="BodyID">
    </textarea>