HTTP Flashcards
What is a client?
Is the one that initiates the request
What is a server?
Providers of a resource or service. (machines)
Which HTTP method does a browser issue to a web server when you visit a URL?
Get method
What three things are on the start-line of an HTTP request message?
An HTTP method, the request target (usually a URL or absolute path), HTTP version which defines the structure of the remaining message. acting as an indicator of the expected version to use for the response.
What three things are on the start-line of an HTTP response message?
The protocol version (usually HTTP/1.1), status code(indicating success or failure of the request), status text,
What are HTTP headers?
key-value pairs that allow us to store extra info about the request
they allow the client and the server to pass additional information with an HTTP request or response.
Includes a case-insensitive string followed by a colon.
Where would you go if you wanted to learn more about a specific HTTP Header?
MDN docs
Is a body required for a valid HTTP request or response message?
No