How does the browser even say, show me the products ?
Does it send English? Hindi? Morse code? Carrier pigeons? ๐๏ธ
No.
The internet has a language.
Itโs called HTTP.
Think of HTTP as restaurant etiquette. Imagine walking into McDonaldโs.
Instead of ordering Burger, you say :
One McAloo Tikki meal.๐
Large fries.๐
Coke.๐ง
Takeaway.๐ฆ
Everything follows a format. HTTP does exactly that.
It tells browsers: hereโs how you ask nicely.
And servers: hereโs how youโre supposed to answer.
HTTP defines the request format, response format, methods, headers, URLs, and status codes so both sides follow the same rulebook.
The internet has five favourite verbs.
- GET : Iโm just looking.
- POST : Iโm sending something.
- PUT : Replace everything.
- PATCH : Just change this one thing.
- DELETE : Adios.
Congratulations.
You now know 80% of the HTTP methods youโll use daily.
๐ง So farโฆ
โ Browser asks.
โ Server answers.
โ HTTP keeps everyone civilised.
The browser finally knows how to talk.
But wait ๐ซท
We still have a small problem.
Java has absolutely no idea what HTTP means.
Let's decode this in the next one. Stay tuned!
Top comments (0)