HTTP Flashcards
What is a client?
clients, initiate communication sessions with servers and make requests.
programs that consume/request data from elsewhere
What is a server?
The server component provides a function or service to one or many clients
Which HTTP method does a browser issue to a web server when you visit a URL?
get
What three things are on the start-line of an HTTP request message?
An HTTP method, The request target, usually a URL, or the absolute path of the protocol, port, and domain are usually characterized by the request context. the HTTP version
post / http 1.1
What three things are on the start-line of an HTTP response message?
The protocol version, usually HTTP/1.1.
A status code, indicating success or failure of the request. Common status codes are 200, 404, or 302
A status text. A brief, purely informational, textual description of the status code to help a human understand the HTTP message.
What are HTTP headers?
HTTP headers let the client and the server pass additional information with an HTTP request or response. An HTTP header consists of its case-insensitive name followed by a colon (:), then by its value. additional information
Where would you go if you wanted to learn more about a specific HTTP Header?
MDN
Is a body required for a valid HTTP request or response message?
no it is optional