What is the initial section of an HTTP message called?

Prepare for the eLearnSecurity Junior Penetration Tester exam with our comprehensive quiz platform. Improve your skills with multiple-choice questions, detailed explanations, and exam tips. Get exam ready with ease!

Multiple Choice

What is the initial section of an HTTP message called?

Explanation:
HTTP messages start with the request line (in requests) or the status line (in responses). The request line shows the method, the path or URI, and the HTTP version, like “GET /index.html HTTP/1.1.” After that comes the header section, which lists metadata such as Host, User-Agent, and Accept. A blank line separates the headers from the body, which carries the payload. There’s no footer in standard HTTP messages. So the initial portion is the request/status line, not the headers.

HTTP messages start with the request line (in requests) or the status line (in responses). The request line shows the method, the path or URI, and the HTTP version, like “GET /index.html HTTP/1.1.” After that comes the header section, which lists metadata such as Host, User-Agent, and Accept. A blank line separates the headers from the body, which carries the payload. There’s no footer in standard HTTP messages. So the initial portion is the request/status line, not the headers.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy