HTTP Flashcards
What is a client?
In computing, a client is a piece of computer hardware or software that accesses a service made available by a server as part of the client–server model of computer networks. The server is often (but not always) on another computer system, in which case the client accesses the service by way of a network. It may be a desktop computer, laptop, smartphone, or any other network-compatible device.
What is a server?
A server is a computer that provides data to other computers. It may serve data to systems on a local area network (LAN) or a wide area network (WAN) over the Internet.
Which HTTP method does a browser issue to a web server when you visit a URL?
The browser will send a GET request to the server. If you’re entering credentials or submitting a form, this could be a POST request.
What is on the first line of an HTTP request message?
A start-line describing the requests to be implemented, or its status of whether successful or a failure. This start-line is always a single line. Which contains the HTTP method, request target, and the HTTP version.
What is on the first line of an HTTP response message?
The start line of an HTTP response, called the status line, contains the following information: The protocol version, status code (Failure or Success), and a status text.
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 colon (:), then by its value. Whitespace before the value is ignored.
Is a body required for a valid HTTP message?
The final part of the request is its body. Not all requests have one: requests fetching resources, like GET, HEAD, DELETE, or OPTIONS, usually don’t need one.