HTTP

HTTP - (Hypertext Transfer Protocol)

Request

The request is a message

Methods

GET- Browser caches GET-requests

HTTP/1.0

Request

Request line

# Method  Query string  Protocol version
HEAD / HTTP/1.0

Headers

# key:value
User-Agent: Google Chrome

Response

Status line

# Protocol version  Status code  Message
HTTP/1.0 200 OK

Headers

#key:value
Date: Sat, 18 Jan 2020 09:24:50 GMT
# Custom headers begins with the letter "X"
X-XSS-Protection: 0

HTTP/1.1

This version extends HTTP/1.0 and adds virtual hosts and keep-alive.

Request

# Protocol version  Status code  Message
HTTP/1.0 200 OK
# Host which should be returned
host: google.com

Last updated