The options givens are:Which of the following HTTP protocol methods is eligible to produce unintended side effects upon multiple identical invocations beyond those caused by a single invocation?
- GET
- POST
- HEAD
- PUT
- OPTIONS
The explanation given is also contradictory:
Please clarify.The recommended semantics of a GET request are such that if you invoke the same request repeatedly, there should be no extra side effects. For example, a GET request for retrieving an image will not cause any side effect no matter how many times you issue the request.
On the other hand, if you issue a POST request repeatedly, you cannot hold the servlet developer responsible for causing unintended side effects. For example, if you submit a form for making a reply in a forum multiple times, the reply may get posted multiple times.
In practice, many developers do not follow this convention. A simple rule of thumb is that any activity that modifies something (such as a database) should be performed only on a POST request (and not on a GET request).
Thanks,
Sanjay