What is a post request?

A POST request is an HTTP request that sends data in its body to a server, usually to create or change something there.

HTTP has several methods. POST is the one for sending data that the server should act on. The data goes in the body of the request, not in the address, and a Content-Type header tells the server how it is encoded.

A form that collects messages, sign-ups or files should use POST. The values stay out of the address bar, browser history and server logs of addresses, there is no practical length limit from the URL, and files can be sent. A browser also warns before repeating a POST on reload.

A form sends a POST when its method attribute is "POST". FormTango endpoints take submissions this way, as a normal form post, a multipart post or JSON.

http
POST /f/YOUR_FORM_ID HTTP/1.1
Host: formtango.com
Content-Type: application/x-www-form-urlencoded

email=ada%40example.com&message=Hello

Related