This article is a mirror article of machine translation, please click here to jump to the original article.

View: 19919|Reply: 1

[Source] .NET C# questions about Request payload taking values in the background

[Copy link]
Posted on 11/6/2015 5:20:03 PM | | | |


In HTTP requests, if it is a get request, then the form parameters are attached to the URL in the form of name=value&name1=value1, and if it is a post request, then the form parameters are in the request body, and also in the form of name=value&name1=value1. Here's what you can see through chrome's developer tools (here is the readable form, not the request format for the real HTTP request protocol):

Source code obtained:

  1. var bytes = new byte[Request.InputStream.Length];
  2.             Request.InputStream.Position = 0;
  3.             Request.InputStream.Read(bytes, 0, bytes.Length);

  4.             string str = Encoding.UTF8.GetString(bytes);
Copy code






Previous:jquery overrides the bootstrap-style alert/confirm message window
Next:bootstrap-table server paging background value problem
 Landlord| Posted on 11/6/2015 5:36:46 PM |
Read parameter methods  http://www.itsvse.com/thread-2384-1-1.html
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com