HTTP-Messages Flashcards
What is a client?
It is an interface that a user interacts with to receive data, content or a service
Whether a computer is a client, a server, or both, is determined by the nature of the application that requires the service functions.
The client sends a request, and the server returns a response.
What is a server?
usually another computer (or in the same system) that the user accesses via the client
Whether a computer is a client, a server, or both, is determined by the nature of the application that requires the service functions.
The client sends a request, and the server returns a response.
Which HTTP method does a browser issue to a web server when you visit a URL?
GET request mthod
What is on the first line of an HTTP request message?
HTTP Method, the request target (URL usually) and HTTP version
What is on the first line of an HTTP response message?
protocol version (usually HTTP/1.1), status code (200, 204 or 302), status text (connects to status code)
HTTP/1.1 404 Not Found
General headers – apply to the whole message.
Request headers – additional info
Entity headers – content length, data types
Is a body required for a valid HTTP message?
no, requests fetching resources, like GET, HEAD, DELETE, or OPTIONS, usually don’t need one.
What are HTTP headers?
meta data about request and response
General headers – apply to the whole message.
Request headers – additional info
Entity headers – content length, data types