Everything about HTTP

Details about HTTP, Port Number, Status Codes, Request Methods, and Headers

What is HTTP?

Image take from Wikipedia

Status Codes

Port Number

Port Number assigned:-

Note:-

- When we will search for https://google.com then by default, the search will be for https://google.com:443

- By all these ports it doesn’t mean that https will not work with the port number 234, it will work but it is not what anyone will advise someone to do.

More about Port Numbers

Request Methods

NOTE :-

- GET is the method should not have a body as if it will store some data like username, and password then anyone can access those data via just visiting the site.

- We can do anything we want using GET and POST on the internet under http. These two are the most powerful methods to use.

- Functionality wise POST is the most superior as it can perform as others as well. Because POST contain the Request Payload body which contains the resources.

Request Headers

Full View of the Request Header

:authority: codedamn.com
:method: GET
:path: /
:scheme: https
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
accept-encoding: gzip, deflate, br
accept-language: en-GB,en-US;q=0.9,en;q=0.8,hi;q=0.7
cookie: _gcl_au=1.1.659405939.1664042912; _ga=GA1.1.1679921718.1664042913; _fbp=fb.1.1664042912877.1560911668; AUTH_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImR1a2U3ODYiLCJfaWQiOiI2MTFjYTUyYzQxYzRhMTAwMDhlNDg4M2QiLCJuYW1lIjoiTW9oaXQgTWlzaHJhIiwiaWF0IjoxNjY0MDQzODM1LCJleHAiOjE2NjkyMjc4MzV9.uzly7qoYubm5iW-vok9M4c7kKG-Qd3HZ6YPKVKQSy4k; amp_824c80=XqiaBPuVfqgshtUxKQWhWe...1ge1rdkrm.1ge1rdkrm.1.2.3; _clck=1drazbx|1|f59|0; crisp-client%2Fsession%2F3e9d1351-f1a3-4320-986d-a97e915064bd=session_b9678a0f-dd6f-4726-95d0-fbbd9d6f8f9f; _clsk=o2x2c1|1664372093460|10|1|n.clarity.ms/collect; _ga_5Q1YFB1R0F=GS1.1.1664372054.10.1.1664372095.0.0.0; amp_824c80_codedamn.com=XqiaBPuVfqgshtUxKQWhWe.NjExY2E1MmM0MWM0YTEwMDA4ZTQ4ODNk..1ge24s6mj.1ge24teib.26.e.2k
referer: https://www.google.com/
sec-ch-ua: "Google Chrome";v="105", "Not)A;Brand";v="8", "Chromium";v="105"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Windows"
sec-fetch-dest: document
sec-fetch-mode: navigate
sec-fetch-site: cross-site
sec-fetch-user: ?1
upgrade-insecure-requests: 1
user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36

Firstly, know that:

and there are many other

URI

Examples:- URLs, URNs, URCs, and many others.

URL

Examples:

URN

Examples:

URC

--

--

My skills include Data Analysis, Data Visualization, Machine learning, and Deep Learning. I have developed a strong acumen for problem-solving, and I enjoy ML.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mohit Mishra

My skills include Data Analysis, Data Visualization, Machine learning, and Deep Learning. I have developed a strong acumen for problem-solving, and I enjoy ML.