HTTP - Request

HTTP - Request

About

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.

Structure

A request message has:

method url httpVersion
headerName: headerValue
...
headerNameN: headerValueM
Optional Body
...

Example with a get request

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

List non-exhaustive of headers put on the request

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

Cookie: name=value; _name=value1

Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9,nl;q=0.8,fr;q=0.7

Security Type

Same / Cross Origin

When the origin of the resource that created the request:

Same / Cross Site

Functional Type

Management

Visualization

Drawing:

Modelisation:

Capture

See HTTP - Diagnostic

Create

See HTTP - Client (User agents)

Save

You can save request in a har format.

Example in Chrome:

Chrome Devtool Har

Library





Discover More
HTTP - Request IP Address

The users / original IP address of a request is stored in the following headers with proxy: without proxy: X_REAL_IP (with proxy, the last second request ip in the chain) geolocalization of your...
Http - Authorization Header (authentication entries)

authorization is a header that contains credentials to authenticate a user known also as Authentication entry. In the request, you would see the following [header|header]] The basic authentication...
Data System Architecture
Log - Logging

A log is a text file with: a timed list of message (activities) that an application has performed execution/request log: web server: web log ( - that stores the Http request error cron...
What are the HTTP status code 4XX?

All status code that begins with the number 4 are error code. Meaning that an error has occurred during the request and that the server may use any of this code to send feedback bad request parameters...
What is a Web Server Router? (HTTP Server)

A router is the routing system of web server that maps an HTTP request: based: on the request method and path specified in the URL of the request to a chain of request handler (function/method)...
What is an HTML Form?

HTML A form is an HTML element that represents a user-submittable form. When parsed as HTML, a form element's start tag will imply a p element's end tag just before. The pizza order form...
What is an 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,...



Share this page:
Follow us:
Task Runner