Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 644
Ramesh Rajendran Avatar asked Dec 20 '13 06:12

Ramesh Rajendran


1 Answers

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

like image 103
Adil Avatar answered Oct 12 '22 23:10

Adil