Course of Raku / Functional, concurrent, reactive, and web programming / Web programming / A simple HTTP client / A raw GET request

Quiz — HTTP requests

In an HTTP request sent over a socket, what marks the end of the request headers?

0A full stop
1A blank line (an extra \r\n)
0The word END
0Closing the socket

HTTP separates the headers from the body — and signals “no more headers” — with a blank line, written as an extra \r\n. Without it, the server keeps waiting for the rest of the request.

Course navigation

A raw GET request   |   Using a client module