|
|
|
|
|
by mike_d
2259 days ago
|
|
No. GET is defined to be nullipotent, or having no side effects. That is not the same as "not making a change." To be pedantic, every GET request to a modern website makes a state change somewhere... to a log file, to a database, to a tracking system. The difference is it has no side effect for the user (i.e. your comment gets duplicated or your order placed twice) |
|
> safe, meaning that applying it to a resource does not result in a state change of the resource (read-only semantics)
It should never be used to -create- anything, only to retrieve existing resources (and not change their state). For creating we have POST requests. Obviously no one is going to care or do anything about it if you use GET, but if we're going to be pedantic le t's not mischaracterise GET requests.