HTTP packet
HTTP packets include request packets and response packets.
Figure 30: HTTP packet format
![](images/image30.png)
The header of an HTTP request packet consists of a request line and header. The request line consists of the request type field, the URL field, and the HTTP version field separated by spaces.
The header of an HTTP response packet consists of a status line and header. The status line consists of the HTTP version field, the status code field, and the status phrase field separated by spaces.
Both the request packet headers and the response packet headers consist of several optional fields. The response packet header contains the HOST field, which identifies the host name and the port number of the server. The header of a packet with body load contains the Content-Type field, which identifies the MIME type of body load.
When the length of an HTTP packet with body load exceeds the MSS of TCP, the packet is fragmented.