开发者

Reading PUT HTTP method from Page object

I have a System.Web.UI.Page page which receive both POST and PUT HTTP requests.

Reading a POST data through the Request.Form field is fine.

开发者_开发百科But how can i get PUT data? Request.Form field is empty.

Is there a way to access the raw request? or better: The PUT data?


I found the solution, I was not using the good Field as Put data are contained in the body.

To access put data use:

Request.InputStream;
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜