开发者

Reading PUT HTTP method from Page object

开发者 https://www.devze.com 2023-02-10 20:39 出处:网络
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.

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

精彩评论

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