HTTP Flashcards
What is a client?
Service requesters, initiaters. program or device that requests service.
What is a server?
Providers of a resource or service. servers are constantly waiting for a request.
Which HTTP method does a browser issue to a web server when you visit a URL?
HTTP Get Request
What three things are on the start-line of an HTTPrequestmessage?
http method (like get, put, post) or a noun(like head or options), that describes the action to be performed. The Request Target, usually a url, or the absolute path of the protocol, port and domains are usually characterized by the request context. 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 HTTPresponsemessage?
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 allow the client and the server pass additional information with an http request or response.
Specifying the request, or describing the body included in the message. very similar to head tag in html doc. headers are key value pairs.
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, sometimes the message is enough.
What is on the first line of an HTTP request message?
An HTTP method (GET, POST, PUT), the request target, HTTP Version.
What is on the first line of an HTTP response message?
protocol version (usually HTTP/1.1), status code (200, 404, 302), a status text