HTTPS Flashcards
What is a client?
a piece of computer hardware or software that makes requests to a server and interprets their responses.
What is a server?
computer hardware or software that provides data or functionality to a client
listens for network requests and responds to them
a provider of a service or resource
Which HTTP method does a browser issue to a web server when you visit a URL?
GET
can go to the network tab and see the the request types
What is on the first line of an HTTP request message?
- an HTTP method; GET, PUT, POST, etc
- the request target; URL or absolute path, port etc
- the HTTP version
What is on the first line of an HTTP response message?
- HTTP Protocol Version
- Status Code - 404, 302, or 200
- Status Descriptor (brief descriptor of the status code)
What are HTTP headers?
HTTP headers let the client and the server pass additional information with an HTTP request or response.
HTTP headers are optional lines of text that specify the request or describe the body included in the message. key value pairs
What are HTTP headers?
HTTP headers let the client and the server pass additional information with an HTTP request or response
Is a body required for a valid HTTP message?
no - not at a protocol level, it is always optional.
when you work with APIs or designing APIs you want the body to be required sometimes, but this is at the app level, not the protocol level.
no, not all HTTP/responses have a body