The Internet Is Just Pipes
When a Lahori uncle says the cloud is broken, what he usually means is that his WhatsApp is not loading. The word cloud sounds like a soft white thing floating somewhere abstract. The truth is sharper and more useful. T…
There is more than one way to understand this. If you have only been taught one, you have been taught less than you deserve.
There is more than one way to understand this. If you have only been taught one, you have been taught less than you deserve.
When a Lahori uncle says the cloud is broken, what he usually means is that his WhatsApp is not loading. The word cloud sounds like a soft white thing floating somewhere abstract. The truth is sharper and more useful. The cloud is a warehouse full of computers in a city like Singapore or Frankfurt, connected to your phone in Gulberg by literal underground glass cables that cross the Arabian Sea. Every time you tap a button on an app, a tiny letter is sent down those cables, a different computer reads it, writes a reply, and sends the reply back through the same cables to you. Two seconds later your screen updates. The internet is not magic, it is pipes.
The letter has a name. It is called an HTTP request. HTTP stands for hypertext transfer protocol, which sounds intimidating but is just a fixed format for the letter, the way an Easypaisa receipt has fixed fields, sender, receiver, amount, time. An HTTP request has four important fields. A method, like GET to read or POST to send. A URL, the address of the server you are writing to. Headers, small notes such as your language preference. A body, the actual content. The reply that comes back has a status code, like 200 for success or 404 for not found, and its own body, usually JSON.
Try one yourself, no app, no installation. Open your browser and go to api dot exchangerate dash api dot com slash v4 slash latest slash USD. The page that loads is JSON, raw and a bit ugly, showing today's exchange rate of one US dollar against every currency. Find the line that says PKR. That number is the answer to a real question, what is the rupee at right now, and your browser just made an HTTP GET request to find out. The same letter, the same envelope format, the same pipes that carry your WhatsApp also carry this. There is no second internet for serious work, only the one that fits in your hand.
Now write the request from code. Open Replit, new Python file, type three lines. import requests. response equals requests dot get of the same exchange rate URL. print of response dot json open paren close paren. Run. Your screen prints the same JSON, but now you can do anything with it. Pick out the PKR field. Multiply it by your monthly fee in dollars. Save the result to a file. The leap from a browser tab to a Python script is the leap from being a reader of the internet to being a writer of it. Pakistan has fifty million readers and only a few hundred thousand writers. The line you cross today moves you to the smaller, more interesting side.
One more idea before we close. The thing people call the cloud is, on Pakistani internet bills, paid for in two parts. The fibre that brought your request to the city, called transit, and the rented seat on the warehouse computer, called hosting. Your monthly Jazz package is the first. A small Vercel or Netlify account, often free for personal projects, is the second. The whole modern web sits on these two layers. Once you see them as separate, the price of building a website on Pakistani salaries stops looking impossible. A student in Sahiwal can host a real product for free this month and only pay later, if and when many people start using it.
Estimated time: 13 min