开发者

StreamReader does not read xml from html post

I am trying to post an xml document from a html page and read the response from the POST like this:

string PostBuffer = new StreamReader(context.Request.InputStream ).ReadToEnd();

The streamreader does not read the xml that is on the html document withing the textarea being submitted in the post. The post works 开发者_JAVA百科on a form app we have just not on the post from the html.

Any Ideas?


Try to see if the textarea is indeed submitted. use firebug or any other developer tools to see the actual post request sent.

If it is indeed not sent, perhaps the textarea element is outside the <form></form> bounds.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜