CS FundamentalsHardProduct-company placement

A form sends a POST to /old, and the server must redirect it to /new so that the browser repeats the POST with the same body, and the move is permanent. Which status code fits?

  1. A. 301 Moved Permanently
  2. B. 303 See Other
  3. C. 307 Temporary Redirect
  4. D. 308 Permanent Redirect

Correct answer: D. 308 Permanent Redirect

308 is permanent and forbids changing the method or body. 301 (like 302) historically lets clients turn POST into GET, 303 explicitly tells the client to use GET, and 307 keeps the method but is temporary.

More Computer Networks questions

Exams that ask this topic