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
Map Of Internet 1973
A Content delivery network delivers Static resources such as image locally worldwide

A description for the search page result engine
A range request asks for a portion of the file

This is a method that lets you read a file in parallel and improve throughput.
Card Puncher Data Processing
Ansible - Http (Get_url, Uri)

Http request in Ansible
Card Puncher Data Processing
Aws - Lambda Function

AWS Lambda run code in response to events such as an HTTP request. A lambda function (Serverless code) can defined using AWS SAM. Every Lambda function has an IAM role associated with it. This role...
Browser
Browser - Page loading

Page loading is a status of the timeline of a page load. When a page is loaded, it means that the browser: has received a HTTP response from an request and has parsed the content (during the parse...
Chrome Devtool Xhr Fetch Request
Browser - XMLHttpRequest (XHR) API

The XMLHttpRequest is a web api function that performs an resource fetch with an Aysnchronous HTTP request XMLHttpRequestAPIAJAX programmingfetch API The status of an XHR request. Value Constant...
Chrome Enable Source Map
CSS - Source Map

For each CSS file it produces, a CSS preprocessor generates: a source map file (.map) and the compiled CSS. The source map file is a JSON file that defines a mapping between: each (compiled|generated)...
Card Puncher Data Processing
Code design - (Connection|Session)

During the use of a product, a session or connection is a execution context that holds identification data (if any) and group actions (such as interaction or transaction) that take place within...
Cookie Scope Name
Cookie - Scope

The scope of a cookie name is a calculated property defined by the concatenation of the and attributes. If the request URL matches the scope (ie domain and path expression), the user agent (browser)...
Cross Site / Cross Domain Request

A request is: same-site if its target's URI's origin's registrable domain is an exact match for the request's initiator's (the parent), and cross-site otherwise. A cross site request is also known...



Share this page:
Follow us:
Task Runner