• HTTP Request Methods or HTTP Verbs to indicate the desired action to be performed for a given resource
  • HTTP Request Resource - is identified by the URL path

HTTP Request Template

HTTP Request Example

Request-Method /Request-Resource HTTP-Version
HTTP Headers

HTTP Request Body (depends on Request-Method)

POST /test/resource HTTP/1.1Host: foo.example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 27field1=value1&field2=value2

HTTP Request Method Types

GET

requests a representation of the specified resource. Requests using GET should only retrieve data.

HEAD

asks for a response identical to that of a GET request, but without the response body.

POST

used to submit an entity to the specified resource, often causing a change in state or side effects on the server

PUT

replaces all current representations of the target resource with the request payload

DELETE

deletes the specified resource

CONNECT

establishes a tunnel to the server identified by the target resource

OPTIONS

used to describe the communication options for the target resource

TRACE

performs a message loop-back test along the path to the target resource

PATCH

used to apply partial modifications to a resource