Which HTTP method is primarily used for safe, non-idempotent requests to retrieve data?
- POST
- DELETE
- GET ✓
- PUT
Correct answer: GET
Option C is correct because GET is the standard HTTP method for retrieving data from a server. It is classified as a "safe" method, meaning it should not modify server state and is intended purely to read a resource, which is exactly what the question targets. Note that GET is also formally idempotent per RFC 9110, so the phrase "non-idempotent" in the prompt is imprecise; the defining trait that points to GET is that it is the safe, read-only retrieval method. Option A is wrong because POST submits data to create or process a resource and is neither safe nor idempotent. Option B is wrong because DELETE removes a resource, which changes server state and is not a retrieval operation. Option D is wrong because PUT replaces or creates a resource at a target URI, again modifying state rather than safely retrieving data.
Topic: · http methods, web application testing, rest, safe methods