http Flashcards
What is a client?
A service requester,
A program or device/program that request information from a server.
Clients are the ones receiving between the client-server relationship, they are the one requesting data like files, or to tell servers about things that happen.
What is a server?
The one providing the resources.
Servers are the providers within the client-server relationship. They are the one that is sending data like files to all the clients.
If clients request for things, servers are the ones that respond.
Which HTTP method does a browser issue to a web server when you visit a URL?
the GET method
What three things are on the start-line of an HTTP request message?
1) http verbs (method)
2) request target
3) http protocol version
What three things are on the start-line of an HTTP response message?
1) The protocal
2) Status Code
3) Status Text
1) The protocol version,
2) a status code, indicating success or failure of the request. Common status codes are 200,404, or 302
3) 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 conol ( : ) then by its value.
Where would you go if you wanted to learn more about a specific HTTP Header?
MDN Web Docs
Is a body required for a valid HTTP request or response message?
No. not all HTTP request or response needs a body