HTTP - Message (Syntax)

About

An http message is a textual message that consists of:

There are two kinds of messages:

They differ in the format of the first line, but both can have header fields and an optional body (entity).

A request followed by a response is called a fetch.

Example

Example with a get request that shows only a list of header

GET https://datacadamia.com/web/http/method HTTP/1.1
Host: datacadamia.com
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Referer: https://datacadamia.com/web/http/method
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9,nl;q=0.8,fr;q=0.7
Cookie: Session=2he81i5j7tvd5





Discover More
HTTP - Body (Content, Entity, payload, data sent)

Entities are the data sent with an HTTP message: HTML page Image Web form parameters An entity is better known as the body or in a network context, this is the payload of the message. The...
HTTP - Proxy

An HTTP proxy is a proxy that re-routes the HTTP message (request and response). It sits between the client and the origin server. There is two kinds of proxy but they are just the same application,...
Chrome Devtool Har
HTTP - Request

An HTTP request is a message sent from a client to a server. It's the first part of a fetch, the second being the response. A request message has: a first line called the request...
HTTP - Response

An HTTP response is a message sent from a server to a client in response to a request. It's the second part of a fetch, the first being a request. Example of a response that returns an HTML document...
What are email headers?

Email header are the most important part for email routing and this articles regroups the main logic about them
What are the HTTP Request Methods (Get, Post, Put, )?

The http method is a mandatory header of http request that defines the type of operation. A minimal get request from this page It's used by the web server router to map a request to a function....
What contains the HTTP Last-Modified header

The Last-Modified header is part of a conditional get request in order to get a resource if and only it has changed since the last fetch
Map Of Internet 1973
What is a Message?

A message is the common name given to the data unit in the higher end / applicative layer of the OSI model. As with every data unit, it's composed of: headers that define the metadata and a payload....



Share this page:
Follow us:
Task Runner