TOP SECRET · WEB TECH 101

Agent HQ: GET vs POST

Send a message to headquarters and watch it travel from your browser (client) to the server and back. Pick your delivery method carefully, Agent: a postcard or a sealed envelope?

💻Clientyour browser
request → ← response
🛰️Servern8n workflow
1 · BuildBrowser packs the form fields into an HTTP request
2 · SendRequest travels over the internet to the action URL
3 · ProcessServer reads, validates and decides a reply
4 · RespondStatus code + headers + body come back

📮 The Postcard method="get"

Anyone who handles a postcard can read it. GET writes your data into the URL.

Live preview: the address bar after you submit⚠️ secrets in red
“Real form” = the browser leaves this page and shows the server's reply. “Inspect” = JavaScript sends the same request and shows it below.

✉️ The Sealed Envelope method="post"

Data goes inside the request body. Nothing in the URL. (Still needs HTTPS to stop real spies!)

Live preview: the raw HTTP requestbody = green

        
After a real POST, try pressing Refresh on the reply page. What does the browser ask you?

🔬 Request Inspector

Exactly what went out, and exactly what came back. (Pro tip: open DevTools → Network tab too.)

➡️ Request sent

Click “Send & inspect” on either form…

⬅️ Response received

—waiting for a request
Show raw JSON body

📡 HQ Board: live from the server

Every message the class sends is stored on the server. This list is fetched with GET ?action=board.
0
messages
No agents have reported in yet.

📋 Cheat sheet

GET 📮POST ✉️
Where's the data?URL query string
?codename=Croc
Request body
Visible in address bar?YesNo
Saved in history / logs?Yes, the whole URLURL only, not the body
Bookmark / share the result?YesNo
Refresh the result pageSilently re-sendsBrowser warns: “resubmit form?”
Size limitURL length limits (a few KB)Much larger (files!)
Use it for…Search, filters, reading dataLogins, sign-ups, payments, changing data
Secure by itself?❌ Neither! Only HTTPS encrypts the request. POST just keeps data out of the URL.

🎯 Field missions

  1. Send a postcard with a password. Read the address bar out loud. 😬
  2. Copy the GET result URL and paste it into a new tab. What happens? Now try with POST.
  3. Press Refresh on a POST result page. Why does the browser warn you?
  4. Open DevTools, find the required attribute on Codename and delete it. Submit empty. Who stops you now?
    AnswerThe server returns 400 Bad Request. Never trust the client: always validate on the server.
  5. Edit the GET URL by hand: change codename= to something else and press Enter. You just sent a request without a form!
  6. In the Network tab, compare the Content-Type request header for GET vs POST.
    AnswerPOST sends application/x-www-form-urlencoded; GET has no body, so no Content-Type.