January 2019
Intermediate to advanced
384 pages
11h 50m
English
HTTP is a relatively simple protocol that follows the request-response pattern. Its most popular version is HTTP/1.1. The protocol is text-based, and so it's human readable and easily debuggable. It uses TCP as its transport and thus doesn't have to be concerned about lost packets and re-transmissions. An HTTP request consists of the command, which in this example is GET, and several headers that act as lines of the general name : value form:
GET /path/file.html HTTP/1.1 Connection: closeHost: www.somedomain.com
With this simple command, we have requested the contents of a HTML file to be sent back in response. The response, in turn, could look like this:
HTTP/1.1 200 OKDate: Fri, 7 Dec 2018 23:59:59 GMT ...
Read now
Unlock full access