http-messages Flashcards
What is a client?
A client is a piece of software or hardware that makes requests and receives data or information from a server
What is a server?
A server is a system that offers data and information to a client when interacted with
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?
A HTTP method such as GET, PUT, or POST, the target URL or absolute path, and the HTTP version
What three things are on the start-line of an HTTP response message?
The protocol version, usually HTTP/1.1, a status code such as 200, 404, 302, and some status text to briefly describe the HTTP message in english
What are HTTP headers?
They let the client and server pass additional information with an HTTP request or response
Where would you go if you wanted to learn more about a specific HTTP Header?
MDN HTTP Header then find the grouping of different headers according to their contexts
Is a body required for a valid HTTP request or response message?
Not required. Responses can have a status code that says enough and requests which usually fetch resources, don’t need one