Web requests
A background in web requests is valuable before delving into interfaces that run over the top of the Hypertext Transfer Protocol (HTTP).
Each web request sent to a web server has an HTTP method.
HTTP methods
HTTP supports several different methods, including the following:
GET
HEAD
POST
PUT
DELETE
CONNECT
OPTIONS
TRACE
PATCH
These methods are defined in the HTTP 1.1 specification in RFC 2616: https://www.rfc-editor.org/rfc/rfc2616.html#section-9.
It is common to find that a web server only supports a subset of these. In many cases, supporting too many methods is deemed to be a security risk.
GET
is the most common method which is used to retrieve information from a server. After that, the POST
method is the most common, which is used to send information from a client back to a server—for example, when entering values into a web form.
PUT
and DELETE
methods are sometimes...