Location
E200850
The Location header field is an HTTP response header used to indicate the URL to which a client should be redirected or where a newly created resource can be found.
All labels observed (1)
| Label | Occurrences |
|---|---|
| Location canonical | 1 |
Statements (46)
| Predicate | Object |
|---|---|
| instanceOf | HTTP response header field ⓘ |
| alsoKnownAs | Location HTTP header ⓘ |
| associatedWithMethod |
DELETE
ⓘ
GET ⓘ PATCH ⓘ POST ⓘ PUT ⓘ |
| belongsTo |
HTTP/1.1
ⓘ
surface form:
HTTP/1.1 specification
HTTP/2 specification ⓘ HTTP/3 ⓘ
surface form:
HTTP/3 specification
|
| controlsBehavior | automatic redirection by clients ⓘ |
| definedIn |
RFC 7231
ⓘ
RFC 9110 ⓘ |
| exampleUsage |
HTTP/1.1 201 Created\r\nLocation: https://api.example.com/resources/123\r\n
ⓘ
HTTP/1.1 302 Found\r\nLocation: https://example.com/\r\n ⓘ |
| exampleValue | https://example.com/new-location ⓘ |
| governs | where subsequent request should be sent ⓘ |
| hasPrimaryPurpose | indicate redirect target URI ⓘ |
| hasSecondaryPurpose | indicate URI of newly created resource ⓘ |
| headerName | Location ⓘ |
| isRequestHeader | false ⓘ |
| isResponseHeader | true ⓘ |
| mustContain | valid URI according to RFC 3986 ⓘ |
| processingRule | client may follow redirect based on status code and method ⓘ |
| relatedConcept |
HTTP redirection
ⓘ
resource creation ⓘ |
| relatedHeader | Content-Location header ⓘ |
| scope | single HTTP response ⓘ |
| securityConsideration |
can be used in open redirect vulnerabilities
ⓘ
should not point to untrusted or user-controlled arbitrary domains without validation ⓘ |
| semanticsWith201 | URI of newly created resource ⓘ |
| semanticsWith3xx | URI to which client should redirect ⓘ |
| usedBy |
HTTP clients
ⓘ
HTTP user agents ⓘ web browsers ⓘ |
| usedInProtocol | HTTP ⓘ |
| usedWithStatusCode |
201 Created
ⓘ
301 Moved Permanently ⓘ 302 Found ⓘ 303 See Other ⓘ 307 Temporary Redirect ⓘ 308 Permanent Redirect ⓘ 3xx Redirection status codes ⓘ |
| valueType |
URI
ⓘ
absolute URI ⓘ relative reference (in some contexts) ⓘ |
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.