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?
| 0 | A full stop |
| 1 | A blank line (an extra \r\n) |
| 0 | The word END |
| 0 | Closing 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.