Sending a POST HTTP request encoding parameters
The HTTP protocol supports some types of verbs. A verb is a way to ask something to a remote server. Some of these verbs are GET
, POST
, PUT
, DELETE
, HEAD
, PATCH
, TRACE
, and OPTIONS
. For a detailed description of the HTTP protocol, you can read the related RFCs at the following URLs:
http://www.w3.org/Protocols/rfc2616/rfc2616.html: RFC2616 about HTTP/1.1 protocol
http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html: RFC2616-specific section about the available verbs in HTTP/1.1 protocol
When you write a URI 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 to send 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...