HTTP requests


Here is an example request:

GET /path/to/file/index.html HTTP/1.1
Host: www.educative.io
Connection: close
User-agent: Mozilla/5.0
Accept-language: fr
Accept: text/html

The request line anatomy

HTTP methods

URI

A Universal Resource Identifier is like a URL, but it can also target fragments of a resource. This is encoded as a # in text, for example (https://en.wikipedia.org/wikiTransmission_Control_Protocol#Network_function) is a URI.

HTTP Header Lines Anatomy

Here is a list of all HTTP header fields. Below are some explanations of commonly used and non-obvious ones