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
\r\n
GET requests dataPOST posts data to the serverHEAD is similar to get, but only requests the header of the data.PUT uploads data to a specific spot defined by a URI.POST request.DELETE deletes data at a given URLA 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.
Here is a list of all HTTP header fields. Below are some explanations of commonly used and non-obvious ones
Connection defines whether the connection is persistent or not. In the case of the example above, it is a non-persistent connection.User-agent defines the client, and is useful when the server has different versions of an object for different browsers.Accept defines the sort of response to accept.