QuestenaPractice that shows what to review next
Question 8

A POST receives a redirect. Which status code forbids the user agent from changing the request method during automatic redirection?

  1. 302 (Found)
  2. 303 (See Other)
  3. 301 (Moved Permanently)
  4. 307 (Temporary Redirect)Correct answer

Explanation

307 states as a MUST NOT that the user agent may not change the method; 308 plays the same role for permanent redirects. For 301 and 302 the spec explicitly permits a user agent to rewrite POST to GET for historical reasons, and 303 directs the agent to perform a retrieval request instead.

Continue with this test

Start practice
Question 8: A POST receives a redirect. Which status code forbids the… · HTTP Semantics · Questena