Requests
Clients send HTTP/1.0 requests, GET and POST for forms, with a Host: header.
GET /games/index.8tml HTTP/1.0
Host: example.com
Clients never list text/html in an Accept header. They may send Accept: text/8tml, or no Accept header at all. This lets a server answer web browsers and 8TML clients on the same address: a request whose Accept names text/html but not text/8tml comes from a web browser and may get HTML or a redirect, and every other request gets the 8TML page. A server that does both sends Vary: Accept. See Hosting 8TML pages.
Responses
| Status | The client |
|---|---|
2xx |
shows the page |
301 302 303 307 |
follows the Location, at most 5 times in a row; after a 303 the next request is a GET |
| anything else | tells the reader; if the body is an 8TML page, shows it too |
Redirects are followed whatever their content type.
The body ends when the server closes the connection. If the response has a Content-Length, the client may stop after that many bytes. Clients accept both HTTP/1.0 and HTTP/1.1 status lines and ignore headers they don’t use. Servers answer HTTP/1.0 requests without chunked encoding, as HTTP requires.
Content types
Clients never look at the file name in the address; the Content-Type header decides:
text/html, and any type starting withimage/,audio/,video/orfont/(compared without case, parameters ignored), isn’t loaded. The client reports an unsupported type and stays on the current page.- Any other type, or none, is read and shown as an 8TML page or as plain text (see Page header).
Servers should send 8TML pages as text/8tml. Clients also accept the defaults servers use for unknown files, such as application/octet-stream and text/plain. See Hosting 8TML pages.
HTTPS
https:// addresses go through the HTTPS proxy when one is configured; without one they can’t be loaded.