http-messages-recap Flashcards
What is a client?
A client is a program that requests services from a service provider also known as a server.
What is a server?
A server is a program that provides a resource or service to clients. A server may be a web server that serves web pages or a file server that serves computer files.
Which HTTP method does a browser issue to a web server when you visit a URL?
GET
What is on the first line of an HTTP request message?
The start line, which contains the request method, the request path, and the HTTP protocol (1.1 or 2.0). The HTTP protocol is the type or format of the request.
What is on the first line of an HTTP response message?
The status line, which contains the protocol version (usually 1.1), status code (202, 404 or 302) and status text.
What are HTTP headers?
HTTP headers are part of each message (request or response) and contains meta information about the request or response.
They give information about the request or response, such as request url, request method (GET, POST), status code, content-type (tells the server or client how to parse the data).
Is a body required for a valid HTTP message?
No