← The Forge
Fundamentals Lab · Web 1

HTTP & curl

Every API call in this whole track — Python, JS, the server-side lessons after this — is the same request/response round trip underneath. curl is how you see that round trip with nothing hiding it: no library, no parsing, just what actually goes over the wire.
Before We Start

These calls are real.

  • Every command here is real, and so is every response: these exact requests were made against a public weather API and a live demo API (covenant.to), and what you'll see is the genuine answer each one came back with. This lab replays those round trips exactly — nothing you type here leaves your browser, and the same commands will work for real in your own terminal.
  • Some of these commands are long. That's normal for curl — the command is the whole request (URL, headers, body all in one line). Select the command shown, copy it, and paste it into the terminal below rather than retyping it by hand.
  • Click inside the black box first so it knows you're typing to it.
Done

A response is a status, some headers, and a body. That's all of it.

Every library you'll ever use to call an API — Python's requests, JavaScript's fetch, whatever a Node or PHP server hands back — is just a nicer way to get those same three things. You've now seen all three with nothing between you and the wire. Next lab: the same requests, but parsed in Python instead of read by eye.
1 / 1
ends with a "mark complete" step