string data="<MTP>\n";
            data=data+" <MDN>ffff</MDN>\n";
            data=data+" <AgentCode>bbbbb</AgentCode>\n";
            data=data+" <MerchantCode>cccccc</MerchantCode>\n";
            data=data+" <ProductCode>ddddddd</ProductCode>\n";
            data=data+" <ProductNum>fffffff</ProductNum>\n";
            data=data+" </MTP>\n";
            MSXML2.XMLHTTP xmlhttp = new MSXML2.XMLHTTPClass();            xmlhttp.open("POST", textBox1.Text, false, null, null);
            xmlhttp.setRequestHeader("Content-Type", "text/xml; charset=utf-8");
            xmlhttp.setRequestHeader("Content-Length", data.Length.ToString());
            xmlhttp.send(data);
            Byte[] b = (Byte[])xmlhttp.responseBody;
            string s = Encoding.UTF8.GetString(b);在send的时候出现异常“The download of the specified resource has failed.”
代码不变,有时候又能成功,有时候服务端能收到http头,xml内容没有,很是奇怪啊
没有多少分,请大侠们指点指点,我都郁闷好几天了