March 2003
Intermediate to advanced
312 pages
7h 12m
English
An HTTP request, which is the message sent from a Web client to a Web server, is comprised of three basic elements:
Request line
HTTP headers
Content
The first line of an HTTP request is always the request line. The request line specifies the request method, the location of the resource, and the version of HTTP being used. These three elements are delimited by spaces. For example:
GET / HTTP/1.1
This example specifies the GET request method, the resource located at / (document root), and HTTP/1.1 as the version of protocol used.
The second section of an HTTP request is the headers. HTTP headers include supporting information that can help to explain the Web client’s request more clearly. There are three types of HTTP headers that ...
Read now
Unlock full access