HTTP (methods, status code, & headers) Flashcards
Used by HTTP request messages in the request line.
Methods
Indicates the desired action for the specified resource.
Method
HTTP methods are sometimes called ________ because of the verb-like naming scheme.
HTTP Verbs
Used to request a specific resource from the server.
GET
Method meant to be read only, and not modify the server’s state.
GET
Used to submit data to a server.
POST
Acording to W3C, POST is designed to cover 4 functions:
- annotation of existing resources
- posting a message to board
- providing a block of data
- extending a database through an append operation
Unlike GET, POST requests often result in some ____________ in the server.
state change
The expected response of this is identical to a response to a GET request with the same path, headers, etc. but without the response body.
HEAD
Used for checking link validity, recent modification, or just to find out more about the resource without actually fetching it.
HEAD
Replaces current resource in the specified path with the data in the request body.
PUT
Deletes the resource in the specified path
DELETE
Used by the client to establish a connection to the server over a tunnel proxy.
CONNECT
Used to echo the contents of an HTTP Request back to the client.
TRACE
Useful for checking how the request is modified by proxies on its way to the server.
TRACE
Used to ask the server about its supported methods.
OPTIONS
Can be used to ask what methods are supported by the server in total or what methods are supported for specific resources in the server.
OPTIONS
Used to apply partial modification to the data in the specified URL.
PATCH
HTTP Methods that correspond to CRUD operations.
PUT
GET
POST/PATCH
DELETE
To ensure compatibility between servers and their clients, all parties are expected to ____________________.
stick to the defined conventions.
What are the three characteristics of HTTP Methods.
Safe
Idempotent
Cacheable
Methods that do not alter the state of the server. In other words, a read-only operation.
Safe Methods
These methods when applied several times do not change the result of the initial application.
Idempotent
Methods that leave the server in the same state whether the request was done once or repeated several times.
Idempotent