Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 2.33 KB

02. Http Requests.md

File metadata and controls

24 lines (17 loc) · 2.33 KB

HTTP Requests

What is a Http Request?

Every time you type google.comin any web-browser, the web-browser performs a http-request for the google.com page. In other words, we as clients, request a page and server sends us back the page with Http Response.

Below, is a sample Http Request:

What are the components of a Http Request?

Http Methods


Http Protocols

Http protocols define how messages are formatted and transmitted, and what actions web servers and browsers should take in response to various commands.

Other Http Request's Components

S.No. Http Request's Component Description
1. Host The server that we searched for. In other words, its name of the website that we typed in search bar
2. User-Agent Server uses user-agent to identify every client's properties; for e.g. the client's web-browser that was used to sent Http request, type of client's operating system
3. Accept The data-type of what client accepts from the server.
Any website's source-code can be found by pressing F12 from the key-board

4. Cookies Cookie is a small piece of data that a server sends to user's web browser.
The browser may store it and send it back with the next request to the same server.