xmlhttp是一种以XML作为传输格式的HTTP协议,而MSXML是XML的解析器,即能够读懂XML

解决方案 »

  1.   

    POST /MiniOA/Demos/XmlHttp.aspx HTTP/1.1
    Cache-Control: no-cache
    Connection: Keep-Alive
    Content-Length: 108
    Content-Type: text/xml
    Accept: */*
    Accept-Encoding: gzip, deflate
    Accept-Language: zh-cn
    Host: liaoyuan
    Referer: http://liaoyuan/minioa/demos/XmlHttp.html
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)<root ColumnTitle="City">
    <item address="Beijing"/>
    <item address="Guangzhou"/>
    </root>以上是XmlHttp向服务器发送数据的一般格式,前面部分是头,后面的为主体,在jsp中可以用request的输入流直接提取。