So why should we use POST instead of GET to publish data?

Possible duplicates:
How to choose GET and POST methods in HTML forms? When do you use POST and when do you use GET?

Obviously you need to. But, in addition to running the HTTP protocol, are there any reasons for this? Less overhead? Something like a safety thing?

+3
source share
8 answers

since GET cannot change server state by definition.

see RFC2616 9.1.1 Safe Methods :

9.1.1 Safe Methods

, , , , .

, GET HEAD . "". , POST, PUT DELETE, , , .

GET , - () , .

+14

W3C : URI, HTTP GET POST.

1.3 HTTP GET POST

  • GET, :
    • (.. , , ).
  • POST, :
    • ,
    • , (, )
+8

, GET , Google .

+6
+2

GET URL, /. 256 .

0

, , GET . , GET , , .

, POST, GET. , - WCF , .

GET POST , , .

0

POST, , "" -. [] , GET.

This article was somewhere on http://www.w3schools.com/ As soon as I found the exact page that it was on, I would rewrite. :-)

-5
source

Source: https://habr.com/ru/post/1714769/


All Articles