HTTP: What Happens After You Click Submit?
When you submit an online form, your browser sends a request. HTTP is the shared set of rules that lets the website receive that request and send back a response—even if the answer is an error.
HTTP stands for Hypertext Transfer Protocol. A protocol is a set of communication rules; HTTP carries web requests and responses for pages, images, submitted data, and other resources.
The browser acts as a client, the software asking for something. A server is the software receiving and handling the request.
How a Web Page Gets to Your Screen
From form fields to a message
Suppose you use a library's website to request a book. The form gathers information you enter, and the browser sends that information to the destination the form specifies.
The request includes a method, a word identifying the kind of operation, and a URL, the address of the requested resource. It can also carry headers, named fields describing the message, and a body, the main data being sent.
Two methods are especially common in forms: GET, which requests a resource, and POST, which submits data for the destination to process. With a GET form, the field values go into the address; with a POST form, they go into the request body.
MDN's guide to sending form data describes that exchange. The website's software decides what to do with the data, including checking whether it's valid; HTTP doesn't automatically save it in a database.
“Accepted” doesn't always mean “finished”
A server's response includes a status code, a three-digit result that software can interpret. It may also include content explaining the outcome or telling the browser what to display next.
For example, 202 Accepted means the request has been accepted for processing, but the work hasn't necessarily started or finished. MDN's explanation of 202 notes that the eventual task can still fail.
In the library example, a system might accept your request before checking the book's availability. An acceptance message wouldn't, by itself, mean the book was ready to collect.
The site's own confirmation needs to explain whether a request was merely received, queued for later processing, or completed.
- Learn to find the flaws in a web app before someone else does.
- Understand injection, broken logins and logic bugs well enough to fix them.
- Build the skills that web security jobs ask for.
POST isn't a privacy feature
Putting form data in a request body keeps those field values out of the form's destination address. It doesn't encrypt them.
HTTPS protects HTTP exchanges with TLS, short for Transport Layer Security. TLS encrypts the connection, scrambling its contents so someone observing the network can't simply read them, and checks for tampering.
Plain HTTP doesn't provide those connection protections. TLS also helps verify the server's identity, as MDN's TLS guide explains.
These protections apply to the connection; the receiving website can still read what you submit.
A form and its submission destination should both use HTTPS. An unprotected page can be altered on the way to your browser, so a secure-looking form label alone doesn't establish a protected exchange.
A missing reply can leave the result unclear
A connection can fail after a server has acted but before the browser receives its response. The HTTP specification's retry rules account for this possibility.
Repeated POST requests can cause repeated actions, as MDN's POST reference explains. Websites may guard against duplicates, but the method itself doesn't provide that guarantee.
If an important submission appears to stall, check the site's confirmation or account history before sending it again. The missing reply tells you the exchange didn't finish cleanly, not necessarily that the requested action never happened.
Headers: The Hidden Instructions Traveling With Your Data

Form-Based Authentication: What Happens After “Sign In”?

HTTPS: A Secure Connection Can Still Lead to a Scam

QUOTE:
"Amateurs hack systems, professionals hack people."
