O'Reilly logo

Understanding TCP/IP by Libor Dostálek, Alena Kabelová

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

14.8 The HTTP Request

The HTTP request (and response) structure reminds us of an email structure. At first sight, we see the difference only in the first line. The first line of a request contains a method, and the first line of a response contains status line.

An HTTP request consists of the following (see Figure 14.10):

  • A method: HTTP version 1.1 supports the following methods: GET, POST, HEAD, OPTIONS, TRACE, CONNECT, PUT, and DELETE. The PUT and DELETE methods are not always implemented.
  • A header: This consists of individual header fields. Every header field starts with a keyword (for example, Host). A colon followed by a space terminates the keyword. After a space, the header field parameters can follow. The whole header field is always terminated ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required