HTTP POST Request Message

From GM-RKB
(Redirected from HTTP POST Request)
Jump to navigation Jump to search

An HTTP POST Request Message is a HTTP request message that requests that the http server accept the data object (in the request message's body) for storage as a new subordinate of the web resource identified by the URI.

  • Context:
    • It can (typically) be used to send data to a server to create or update a resource.
    • It can (typically) not be cached
    • It can (typically) not remain in the browser history
    • It can (typically) not be bookmarked
    • It can (typically) not have data length restrictions.
  • Example(s):
    • POST /test/demo_form.asp HTTP/1.1
      Host: w3schools.com
      name1=value1&name2=value2
    • one for Submitting a web form
    • one for Uploading a file
    • one for Sending data to a web service
    • one for Updating a database record
    • one for Logging in to a website
    • one for Adding a new user
    • one for Registering a user
    • one for Making a payment
  • Counter-Example(s):
  • See: HTTP POST Method.


References

2013

  • http://en.wikipedia.org/wiki/POST_%28HTTP%29
    • In computing, POST is one of many request methods supported by the HTTP protocol used by the World Wide Web. The POST request method is designed to request that a web server accept the data enclosed in the request message's body for storage.[1] It is often used when uploading a file or submitting a completed web form.

      In contrast, the HTTP GET request method is designed to retrieve information from the server. As part of a GET request, some data can be passed within the URI's query string, specifying for example search terms, date ranges, or other information that defines the query. As part of a POST request, an arbitrary amount of data of any type can be sent to the server in a request message body. A header field in the POST request usually indicates the message body's Internet media type.

  1. "Hypertext Transfer Protocol -- HTTP/1.1". RFC 2616. http://tools.ietf.org/html/rfc2616. Retrieved 17 October 2012. "The POST method is used to request that the origin server accept the entity enclosed in the request as a new subordinate of the resource identified by the Request-URI in the Request-Line."