http-requests Flashcards
What is a client?
A client is the requester of a service
What is a server?
A server is a resource that the client requests services from
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?
A single start-line describing the requests to be made
an HTTP method (GET/POST),
the request target (usually a URL),
the HTTP version
What is on the first line of an HTTP response message?
a status line
the protocol version (HTTP/1.1),
a status code (200 - success 404 - not found)
a status text - description of the status code
What are HTTP headers?
an optional portion of an HTTP message that specifies the request/response being made
describes the body included in the message
Is a body required for a valid HTTP message?
no!
if it does have a body, it contains data associated with the request