Metraipolis › HTTP clauses › rfc9110-s15.4-c2

RFC 9110 §15.4 — Redirection 3xx

HTTP Semantics · status: INTERNET STANDARD · keyword: SHOULD · addressee: user agent

Official text

When automatically following a redirected request, the user agent SHOULD resend the original request message with the following modifications: 1. Replace the target URI with the URI referenced by the redirection response's Location header field value after resolving it relative to the original request's target URI. 2. Remove header fields that were automatically generated by the implementation, replacing them with updated values as appropriate to the new request. This includes: 1. Connection-specific header fields (see Section 7.6.1), 2. Header fields specific to the client's proxy configuration, including (but not limited to) Proxy-Authorization, 3. Origin-specific header fields (if any), including (but not limited to) Host, 4. Validating header fields that were added by the implementation's cache (e.g., If-None-Match, If-Modified-Since), and 5. Resource-specific header fields, including (but not limited to) Referer, Origin, Authorization, and Cookie. 3. Consider removing header fields that were not automatically generated by the implementation (i.e., those present in the request because they were added by the calling context) where there are security implications; this includes but is not limited to Authorization and Cookie. 4. Change the request method according to the redirecting status code's semantics, if applicable. 5. If the request method has been changed to GET or HEAD, remove content-specific header fields, including (but not limited to) Content-Encoding, Content-Language, Content-Location, Content-Type, Content-Length, Digest, Last-Modified.

Verbatim from the official RFC text, whitespace preserved. Copyright (c) IETF Trust and the persons identified as the document authors; IETF Trust Legal Provisions.

Official source
https://www.rfc-editor.org/rfc/rfc9110.html#section-15.4-5
Stable URL of this page
https://metraipolis.com/clausola/rfc9110-s15.4-c2

How to cite

RFC 9110, HTTP Semantics, Section 15.4 (Redirection 3xx), https://www.rfc-editor.org/rfc/rfc9110.html#section-15.4-5; clause rfc9110-s15.4-c2: https://metraipolis.com/clausola/rfc9110-s15.4-c2
BibTeX
@misc{rfc9110s154,
  title = {RFC 9110: HTTP Semantics, Section 15.4},
  howpublished = {RFC Editor},
  url = {https://www.rfc-editor.org/rfc/rfc9110.html#section-15.4-5},
  note = {Clause rfc9110-s15.4-c2; https://metraipolis.com/clausola/rfc9110-s15.4-c2}
}

Summary (ours, not RFC text)

This recommendation or permission concerns redirection 3xx in RFC 9110. Its recorded addressee is user agent; use the excerpt and official paragraph to determine the exact obligation.

Conditions

Exceptions

None recorded.

Related clauses