Hypertext Transfer Protocol - Request Message

Request Message

The request message consists of the following:

  • A request line, for example GET /images/logo.png HTTP/1.1, which requests a resource called /images/logo.png from the server.
  • Headers, such as Accept-Language: en
  • An empty line.
  • An optional message body.

The request line and headers must all end with (that is, a carriage return character followed by a line feed character). The empty line must consist of only and no other whitespace. In the HTTP/1.1 protocol, all headers except Host are optional.

A request line containing only the path name is accepted by servers to maintain compatibility with HTTP clients before the HTTP/1.0 specification in RFC 1945.

Read more about this topic:  Hypertext Transfer Protocol

Famous quotes containing the words request and/or message:

    Were all the worshippers of the gold calf to memorialize me and request a restoration of the deposits I would cut my right hand from my body before I would do such an act. The gold calf may be worshipped by others but as for myself I serve the Lord.
    Andrew Jackson (1767–1845)

    No it is better not. She would only ask me to take a message to Albert.
    Benjamin Disraeli (1804–1881)