Networks Flashcards
What is a client?
service requesters, software that communicates and connects to a server
What is a server?
providers of a resource or service; can run multiple things and share resources with clients
serves data
Which HTTP method does a browser issue to a web server when you visit a URL?
GET request
What three things are on the start-line of an HTTP response message?
- Protocol version, usually HTTP/1.1
- Status code indicating success or failure of the request (200, 404, 302 for example)
- A status text; brief purely informational textual description of the status code to help a human understand the HTTP message
(Typical status line looks like:
HTTP/1.1 404 Not Found.)
What are HTTP headers?
key-value pairs that allow us to store extra info about the request
they allow the client and the server to pass additional information with an HTTP request or response
Where would you go if you wanted to learn more about a specific HTTP Header?
IANA Registry (mdn)
Is a body required for a valid HTTP request or response message?
not required
post, patch, put usually will have one but aren’t required