Location HTTP header
E736182
The Location HTTP header is a response header used by web servers to indicate the URL to which a client should be redirected or where a newly created resource can be found.
Statements (45)
| Predicate | Object |
|---|---|
| instanceOf | HTTP response header field ⓘ |
| applicableTo |
HTTP/1.0
ⓘ
HTTP/1.1 ⓘ HTTP/2 ⓘ HTTP/3 NERFINISHED ⓘ |
| canContainFragment | true ⓘ |
| commonlyUsedWithMethod |
GET
ⓘ
POST ⓘ PUT ⓘ |
| controls | client redirection target ⓘ |
| definedIn |
RFC 7231
NERFINISHED
ⓘ
RFC 9110 NERFINISHED ⓘ |
| exampleValue |
Location: /login
ⓘ
Location: https://example.com/new-resource ⓘ |
| for3xxStatus | indicates redirect target URI ⓘ |
| forStatus201 | identifies newly created resource URI ⓘ |
| hasPrimaryPurpose | indicate redirect target URI ⓘ |
| hasSecondaryPurpose | indicate URI of newly created resource ⓘ |
| hasValueType |
URI
ⓘ
absolute URI ⓘ relative reference ⓘ |
| headerCategory | response header ⓘ |
| headerName | Location ⓘ |
| interpretedBy |
user agents
ⓘ
web browsers ⓘ |
| introducedIn | HTTP/1.0 ⓘ |
| isEndToEndHeader | true ⓘ |
| isHopByHopHeader | false ⓘ |
| mayBeRelativeIn | RFC 7231 and later ⓘ |
| mustBeAbsoluteIn | older HTTP specifications ⓘ |
| processedDuring | redirect handling ⓘ |
| relatedConcept |
HTTP redirection
ⓘ
REST resource creation ⓘ |
| relatedHeader | Content-Location HTTP header NERFINISHED ⓘ |
| securityConsideration |
information disclosure via URLs
ⓘ
open redirect risk ⓘ |
| semanticsDependOn | status code ⓘ |
| usedInProtocol | HTTP NERFINISHED ⓘ |
| usedWithStatusCode |
201 Created
ⓘ
202 Accepted ⓘ 301 Moved Permanently ⓘ 302 Found ⓘ 303 See Other ⓘ 307 Temporary Redirect ⓘ 308 Permanent Redirect ⓘ |
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.
subject surface form:
Location header