Bad practice is the following POST request:
/test?a=1&b=2
POST data: c=3&d=4
Note that 2 parameters are part of the URL, and 2 parameters are part of the POST content.
In another note, the following rule is recommended:
- GET request: loading contents from the server, but does not change anything on the server.
- POST request: sending content to a server that can modify data on the server
I ask because I see a bit of everything on the Internet.
Laurent Luce
source
share