HTTP Methods, Status Codes, & Headers Flashcards
_________ are used by HTTP request messages in the request line.
Methods
GET /home HTTP/1.1
What is the method?
GET
_________ indicates the desired action for the specified resource.
Methods
GET /home HTTP/1.1
What is the “action”?
GET
GET /home HTTP/1.1
What is the resource path?
/home
Methods are sometimes called _________ because of the verb-like naming scheme.
HTTP Verbs
Used to request a specific resource from the server.
GET
GET requests are meant to be _________, and not modify the server’s state.
read only
Used to submit data to a server.
POST
POST is designed to cover the 4 functions:
1) Annotation of existing resources
2) Posting a message to a bulletin board,
newsgroup, mailing list, etc.
3) Providing a block of data, such as the result
of submitting a form, to a data-handling
process
4) Extending a database through an append operation
The actual behavior of a server in response to a POST request depends on the _________.
server
POST requests often result in some
_________ in the server
State change
Used for checking link validity, recent modification, or just to find out more about the resource without actually fetching it.
HEAD
The expected response of a HEAD request is identical to a response to a GET request with the same path, headers, etc. but without the _________.
response body
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
Generally for debugging.
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.
OPTIONS
Used to apply partial modification to the data in the specified URL.
PATCH
(T or F)
Some methods correspond to the CRUD operations.
True