GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||
GeezerVison is showing developer.mozilla.org — GET request method - HTTP | MDN GET request method
|
| Request has body | No |
|---|---|
| Successful response has body | Yes |
| Safe | Yes |
| Idempotent | Yes |
| Cacheable | Yes |
| Allowed in HTML forms | Yes |
GET <request-target>["?"<query>] HTTP/1.1
<request-target>Identifies the target resource of the request when combined with the information provided in the Host header.
This is an absolute path (e.g., /path/to/file.html) in requests to an origin server, and an absolute URL in requests to proxies (e.g., http://www.example.com/path/to/file.html).
<query> OptionalAn optional query component preceded by a question-mark ?.
Often used to carry identifying information in the form of key=value pairs.
The following GET request asks for the resource at example.com/contact:
GET /contact HTTP/1.1
Host: example.com
User-Agent: curl/8.6.0
Accept: */*
The server sends back the resource with a 200 OK status code, indicating success:
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Date: Fri, 21 Jun 2024 14:18:33 GMT
Last-Modified: Thu, 17 Oct 2019 07:18:26 GMT
Content-Length: 1234
<!doctype html>
<!-- HTML content follows -->
| Specification |
|---|
| HTTP Semantics # GET |
Range headerPOST method