HTTP - 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:  HTTP

Famous quotes containing the words request and/or message:

    Mr. Roosevelt, this is my principal request—it is almost the last request I shall ever make of anybody. Before you leave the presidential chair, recommend Congress to submit to the Legislatures a Constitutional Amendment which will enfranchise women, and thus take your place in history with Lincoln, the great emancipator. I beg of you not to close your term of office without doing this.
    Susan B. Anthony (1820–1906)

    The photographic image ... is a message without a code.
    Roland Barthes (1915–1980)