Search code examples
c#asp.nethttprequest.querystringrequest.form

Difference between Request.Form and Request.QueryString?


Can some tell me the exact difference between Request.Form and Request.QueryString?

I know one difference, like

If the HTTP request method is POST, the user submitted data is in the Request.Form() collection

If the HTTP request method is GET, then user submitted data is in the Request.QueryString() collection

any other difference? and Any example would be greatly appreciated.


Solution

  • In Request.Form the data is posted in the http request body whereas in QueryString data is sent through url.