Notes From HTTP Made Really Easy: HTTP and Its Transactions
You can find the original post here: http://www.jmarshall.com/easy/http/#resources
Network protocol used to deliver resources on the web. Resources include data, images, query results, files, etc. HTTP usually takes place through sockets.
2. Describe the client/server relationship.
The client opens the connection on some port. The client sends a request to the server. The server (like a server in a restaurant) delivers some response message (like tacos), which includes the requested resource. The server closes the connection (tab) after delivering a response. This makes HTTP a stateless protocol, as no connection information is maintained between transactions.
The R in URL. The most common resource is a file.
4. What is the structure of an HTTP transaction?
an initial line which is different for a request or a response
zero or more header lines
a blank line
optional body message
5. What are the different parts of an initial REQUEST line?
A method name (GET, POST, etc)
The local path of the requested resource
The version of HTTP being used.
Here is the example the author uses:
GET /path/to/file/index.html HTTP/1.0
6. What are the different parts of an initial RESPONSE line (AKA status line)?
The version of HTTP being used.
A response status code (200)
A word describing the status code
Here is an example that the author uses: