与你通过IE来访问其实都是一样的,不需要特别处理。
假设通过XMLHTTP GET http://localhost/a.aspx?id=1 ,它其实与你在IE中输入http://localhost/a.aspx?id=1来直接访问是完全相同的。

解决方案 »

  1.   

    客户端代码:<script> 
       function sendData(){ 
         var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); 
         xmlhttp.Open("POST", "test_server.aspx", false); 
         xmlhttp.Send("<timesheet>An impossibly useless ragment</timesheet>"); 
         window.document.all("divDisplay").innerHTML = xmlhttp.responseText+"---------";

    </script>
      

  2.   

    我希望象asp中,采用如下方式可以接收:<script language=jscript runat=server>   if (Request.ServerVariables("REQUEST_METHOD") == "POST" ) 
       { 
      var req= Server.CreateObject("Microsoft.XMLDOM"); 
      req.async=false; 
      req.load(Request);    
      Response.write("<timesheet>"+req.documentElement.text+"</timesheet>"); 
       } 
      
    </script>
      

  3.   

    关键是不能用Request对象!req.load(Request)出错