http message Flashcards
What is a client?
Accesses a service made available by a server
A service requester
What is a server?
A server provides functionality for other programs or devices
Provider of a resource or service
Which HTTP method does a browser issue to a web server when you visit a URL?
It sends an HTTP Request
GET is retrieve data
What three things are on the start-line of an HTTP request message?
An HTTP Method - Like GET
Request Target - Usually a URL
HTTP Version
What three things are on the start line of an HTTP response message?
The Protocol Version
Status Code - Describes what is going on
Status Text - 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
The metadata of our request
Is a body required for a valid HTTP request or response message?
No, not all responses have a body message.
What is a Client?
A client is a requests services from a server
What is a server?
A server is the provider of a resource or service, a response to the client
Which HTTP method does a browser issue to a web server when you visit a URL?
GET
Retrieves data from the server
What is the first line of an HTTP request message?
The HTTP method
The Request Target
The HTTP Protocol Version
What is on the first line of an HTTP response message?
The status line
Protocol - HTTP Version
Status Code - 200/404
Status Text - English representation of what that number means
What are HTTP headers?
A HTTP header let the client and server pass additional information with an HTTP request or a response
The metadata of our request, extra info, key/value pairs
Content-Type is what you’re going to care about the most
Is a body required for a valid HTTP message?
No, a body is always optional. It depends on what you are trying to do and if the client or server cares about the body