encyclopegia.org

HTTP location

The HTTP Location header field is returned in responses from an HTTP server under two circumstances: #To ask a web browser to load a different web page (URL redirection). In this circumstance, the Location header should be sent with an HTTP status code of 3xx. It is passed as part of the response by a web server when the requested URI has: #* Moved temporarily; #* Moved permanently; or #* Processed a request, e.g. a POSTed form, and is providing the result of that request at a different URI #To provide information about the location of a newly created resource. In this circumstance, the Location header should be sent with an HTTP status code of 201 or 202. An obsolete version of the HTTP 1.1 specifications (IETF RFC 2616) required a complete absolute URI for redirection. The IETF HTTP working group found that the most popular web browsers tolerate the passing of a relative URL and, consequently, the updated HTTP 1.1 specifications (IETF RFC 7231) relaxed the original constraint, allowing the use of relative URLs in Location headers.

The HTTP Location header field is returned in responses from an HTTP server under two circumstances: To ask a web browser to load a different web page (URL redirection). In this circumstance, the Location header should be sent with an HTTP status code of 3xx. It is passed as part of the response by a web server when the requested URI has: Moved temporarily; Moved permanently; or Processed a request, e.g. a POSTed form, and is providing the result of that request at a different URI To provide information about the location of a newly created resource. In this circumstance, the Location header should be sent with an HTTP status code of 201 or 202. An obsolete version of the HTTP 1.1 specifications (IETF RFC 2616) required a complete absolute URI for redirection. The IETF HTTP working group found that the most popular web browsers tolerate the passing of a relative URL and, consequently, the updated HTTP 1.1 specifications (IETF RFC 7231) relaxed the original constraint, allowing the use of relative URLs in Location headers. GET /index.html HTTP/1.1 Host: www.example.com may get the server response HTTP/1.1 302 Found Location: https://www.example.org/index.php HTTP/1.1 302 Found Location: /articles/ The URL of the location is expanded by the client to . HTTP/1.1 302 Found Location: 2020/zoo The client removes the path segment after the last slash of the original URL and appends the relative path resulting in .

References

No reference rows published for this article.

Cite this article

MLA

"HTTP location." encyclopegia.org, 2025, https://encyclopegia.org/wiki/http-location. Accessed 24 November 2026.

Chicago

"HTTP location." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/http-location.

APA

encyclopegia.org. (2025). HTTP location. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/http-location

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Roland Wille

enwiki · references available

Où s'en vont les avions?

enwiki · references available

Yvonne Elkuch

enwiki · references available

James J. Matejka Jr.

enwiki · references available

Princess Caroline of Hesse-Rotenburg

enwiki · references available

Teresa Crippen

enwiki · references available

Dark-backed sibia

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1317232210 · 0.5 · snapshot enwiki-001317232210

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.