QuestenaПрактика, после которой понятно, что повторить
Вопрос 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)Правильный ответ

Объяснение

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.

Продолжить работу с тестом

Начать тренировку
Вопрос 8: A POST receives a redirect. Which status code forbids the… · HTTP Semantics · Questena