Table of contents
- HTTP (Hypertext Transfer Protocol)
- Stateless Protocol
- Cookies
- Session
- HTTP Headers
- Request Response Model (Model likh deta hu cool lagega π)
- User Agents
- TCP (Transmission/Transfer Control Protocol)
- FTP (File Transfer Protocol)
- IP (Internet Protocol):
- URL (Uniform Resource Locator)
- DNS (Domain Name System)
- Payload
- Cache
Whenever you come across exploring any topics related to internet or something related to tech side of things you hear this jargons like HTTP(Hypertext Transfer Protocol),TCP (Transmission Control Protocol)π±
Today will understand what does this actually mean without worrying how big and complex this names is:
HTTP (Hypertext Transfer Protocol)
Http is set of protocols that enables transferring of data between client (browser) and server ensuring seamless communication. Now we came across our first jargon PROTOCOL, what does this mean?
Sochiye, Bigg Boss ek server hai aur ghar ke saare contestants clients hain. π π₯
Ghar ke kaam aur baatchit sahi tareeke se chale, iske liye Bigg Boss ne kuch protocols (niyam) banaye hain. πAgar kisi contestant ko Bigg Boss se kuch request karni hai, toh unhe protocols follow karne padte hain, jaise confession room mein jaakar apni maang rakhna. ποΈπ¬
Ab yeh Bigg Boss pe hai ki wo unki baat maan lein (jaise 200 response dena) β ya mana kar dein (jaise 404 not found dena) β. Agar protocol na follow ho, toh Bigg Boss request ko ignore kar dete hain, bilkul waise hi jaise ek server galat request ko reject karta hai. π«Like that protocol wahi rules hai jo dono taraf ke software mil-jul kar kaam karne ke tareeke sikhata hai. π€ π
Stateless Protocol
Stateless Protocol means the server where the state is not maintained so that server treats every request as a Independent or new request without remembering any previous memory of that request.
Ek golgappa wala hai (server) π§βπ³. Tum usse kehte ho, 'Bhaiya, ek plate golgappa dena' π₯³, aur woh turant de deta hai π€.
Agli baar jab tum uske paas jaate ho, toh woh poori tarah bhool jata hai ki tumne pehle kya order kiya tha π€. Har baar tumhe apna order firse bolna padta hai ποΈ.
Yehi hota hai stateless protocol! π
Cookies
Cookies are nothing but informations sent to browser so that it remembers whether you were logged in or out your previous session.
wait but abhi humne stateless protocol ke baare mein padha toh to cookies ke help se sb yaad kese rehta hai
Well, HTTP is indeed stateless, meaning the server doesn't remember anything between requests. But cookies add an extra layer to it π§ . The server sends some data to the browser in the form of cookies, and the browser stores it. Later, when you visit the site again, the browser sends these cookies back to the server, helping it recognize you and your session.
Session
Session is a state where communication occurs between the client and the server. Cookies are used to remember details from the previous session, so the server doesn't have to ask the same questions again.
Just like when you visit a doctor, after sharing your symptoms once, the doctor doesn't ask you about the fever again because they remember it from the previous visit, cookies help the server remember the previous session details
Toh cookies yeh ensure karte hain ki tumhe har baar apni disease dobara batani na pade.
HTTP Headers
HTTP headers are like the envelope of your request π¬. They carry additional information along with the request or response, such as:
The type of browser you're using (e.g., Chrome, Safari) π
Your device info (e.g., mobile or desktop) π±π»
The date and time of the request π
Cookies πͺ
Other metadata about the request and the server's response.
While cookies are small chunks of data specifically meant to store information about the session, headers include a broader range of details to help the server understand and process the request better.
Socho tum ek restaurant mein jaate ho (HTTP request) aur waiter ko bolte ho, 'Bhaiya, ek pizza la do!' π.
Waiter tumhara order toh le hi leta hai, lekin saath hi woh tumhare baare mein aur extra info bhi notice karta hai, jaise:
Tum kis table par baithe ho (device info π±π»),
Tum kaunsa menu dekh rahe ho (browser info π),
Tum kab aaye the (datetime info π),
Aur tum pehle se VIP ho ya nahi (cookies πͺ).
Request Response Model (Model likh deta hu cool lagega π)
It's basically simple communication between two computers or software systems. For example, between your browser and server or even server-to-server.
When the client (browser or another software system) sends a request to the server, it uses specific HTTP methods (verbs) to specify what action it wants to perform. These methods include:
[GET,POST,DELETE,PUT,PATCH]
and same way Server responds with an HTTP status code
[200,201,304,404,500]
Request:
Tum apne boyfriend/girlfriend se pooch rahe ho, "Kya tum mujhe pasand karte ho?"
(This is like a GET request β you're simply asking for information.)Response:
Boyfriend/girlfriend ka jawab: "Nahi!"
(This is like a 200 status code β meaning the request was received, understood, and responded to. Even though tumahra kat gaya, the communication happened π₯!)
User Agents
User Agent another jargon but its just any software that makes requests to a server on behalf of the user. Most commonly, it refers to web browsers like Chrome, Firefox, or Safari.
TCP (Transmission/Transfer Control Protocol)
TCP is simply a set of protocols that should be followed during the transmission of data from client to server or from server to client
So, imagine you ordered a biryani for yourself, but the delivery guy mistakenly delivers it to another customer. π¬ Here, the protocol (the set of rules for delivering your order) wasn't followed properly, resulting in the wrong delivery. If the protocol was followed correctly, you'd get your biryani without any confusion! π
FTP (File Transfer Protocol)
FTP (File Transfer Protocol) is like TCP's cousin for transferring files. Just as TCP sets rules for data transmission, FTP sets rules for transferring files like CSV, MP4, MP3, etc. It ensures files are delivered properly from one computer to another! ππ₯
IP (Internet Protocol):
"Har computer ka apna unique address hota hai, jo internet protocols (IP) ke zariye assign kiya jata hai."
This means that every computer or device connected to the internet has its own unique address, like how each house has its own address. This address is assigned and managed by the IP protocol, which ensures that data sent over the internet reaches the right place.
URL (Uniform Resource Locator)
Locator - Which tracks the location
Resource - any resource like mp3 mp4 β¦
Uniform - This refers to uniformity or consistency in the way resources are addressed across the web
Let suppose
Locator is like the street name, helping to locate the house. ποΈ
Resource is the house or building you're trying to visit β it could be a blog, a video, or an image. π π₯πΆ
Uniform ensures that every address in the city (the internet) follows the same format, so no matter where you go, you know how to read the address properly. ππ
DNS (Domain Name System)
DNS is like the phone book of the internet ππ. When a user enters a URL (like www.sauravjha.com
) π, itβs like looking up the name in a phone book π. DNS then finds the corresponding IP address (the actual phone number) π± and connects the browser to the correct server π». Without DNS, you would have to remember the IP addresses of websites π instead of their user-friendly names (like URLs) π.
Payload
Payload is nothing but an actual data. When you login to shaadi.com u enter your name, email address and all of it is payload β the actual data that is sent to the server π»
β> When you click the login button the info about the device from you login and related info are knowns are headers which you can call meta data (additional data) along with the actual data which is called payload
Cache
Caching stores the data temporarily β³ until it's changed or modified π. For example, when you request something from the server π» and the server responds with the data, the server caches (stores) your request in a storage location π. Now, if you make the same request again π, the server will simply take the data from the storage location ποΈ and give it back to you, instead of setting everything up from scratch again π οΈ.
Now that you've made it till the end, you must've realized these jargons are nothing but over-the-top formations of words, and their meanings and explanations are really simple and easy! πβ¨
Hope you liked it! If you did, donβt forget to like π and share with peers who are still stuck in the circle of jargons. π Letβs make tech simple for everyone! ππ‘