HTTP Flashcards
What is a client?
service requesters. whoever requests the service or functionality, consumes data from other sources.
What is a server?
providers of a resource or service. providing a data or functionality to client, to the thing that requested
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?
http method (get post), target (URL), http version
What three things are on the start-line of an HTTP response message?
http version, status code (200, 404), status text
What are HTTP headers?
a field of HTTP request that passes additional context and metadata about the request or response. a “head” element in html file.
meta data about the message
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?
body is optional
What is on the first line of an HTTP request message?
http method (get post), request target (URL), http version the start-line, describing the requests to be implemented, or its status of whether successful or failure. always a single-line
What is on the first line of an HTTP response message?
start-line.
http/protocol version, status code (200, 404), status text