1
1
1SLY22020-07-08 19:52:10
ASP.NET
1SLY2, 2020-07-08 19:52:10

Differences between GET and POST requests in the context of ASP.NET MVC 5?

I started learning ASP.NET MVC 5, and the first thing I need to figure out is requests. So far, I have only seen and studied POST / GET, and therefore the attention is focused on them. I can not understand the difference between them, and when and in what cases are they called?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
ayazer, 2020-07-08
@ayazer

has nothing to do with asp.net, it is part of the http standard (GET - https://tools.ietf.org/html/rfc2616#section-9.3 , POST - https://tools.ietf.org/html/rfc2616#section -9.5 )
on application - it's more for you to read about REST. in general - GET is getting information, POST is adding new information.

G
g_s_e, 2020-07-08
@g_s_e

The two main differences between GET / POST are that all parameters passed through GET are converted to url encode (in the url itself), in POST they are hidden in the body of the request. And the second, most significant, difference is that the amount of data transferred in a GET request is much less than in a POST. It is necessary to transfer a smaller amount of data - GET, more - POST

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question