Sending a POST HTTP request encoding parameters
HTTP protocol supports some types of verbs. A verb is a way to ask a remote server something. Some of these verbs are GET
, POST
, PUT
, DELETE
, HEAD
, PATCH
, TRACE
, and OPTIONS
. For a detailed description of HTTP protocol, you can read the related RFCs at the following URLs:
RFC7230, about HTTP/1.1 protocol: https://tools.ietf.org/html/rfc7230
A specific section about the available verbs in the HTTP/1.1 protocol: https://tools.ietf.org/html/rfc7231#section-4
When you write a URL in the browser address bar and hit Return, you are issuing a GET
request to the remote HTTP server. However, when you have to send form data to the server, usually the HTML form uses the POST
method. POST
is designed to allow a uniform method of sending a block of data, such as the result of submitting a form, to a data-handling process or to post a message to a bulletin board, newsgroup, mailing list, or similar group of articles. In other words, while GET
is intended...