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?
action URLAnyone who handles a postcard can read it. GET writes your data into the URL.
Data goes inside the request body. Nothing in the URL. (Still needs HTTPS to stop real spies!)
Click “Send & inspect” on either form…
GET ?action=board.| GET 📮 | POST ✉️ | |
|---|---|---|
| Where's the data? | URL query string?codename=Croc | Request body |
| Visible in address bar? | Yes | No |
| Saved in history / logs? | Yes, the whole URL | URL only, not the body |
| Bookmark / share the result? | Yes | No |
| Refresh the result page | Silently re-sends | Browser warns: “resubmit form?” |
| Size limit | URL length limits (a few KB) | Much larger (files!) |
| Use it for… | Search, filters, reading data | Logins, sign-ups, payments, changing data |
| Secure by itself? | ❌ Neither! Only HTTPS encrypts the request. POST just keeps data out of the URL. | |
required attribute on Codename and delete it. Submit empty. Who stops you now?
codename= to something else and press Enter. You just sent a request without a form!application/x-www-form-urlencoded; GET has no body, so no Content-Type.