The command you enter into your shell:

nc example.com 80

The text you enter while the command is sitting there waiting for input:

1
2
3
4
GET / HTTP/1.1
Host: example.com


(Note that if you're on a system with \n line endings, this will produce a non-standard request that will still likely be parsed)

The result you see (abbreviated):

HTTP/1.1 200 OK
Accept-Ranges: bytes
Age: 321892
Cache-Control: max-age=604800
Content-Type: text/html; charset=UTF-8
Date: Mon, 04 Nov 2024 22:02:30 GMT
Etag: "3147526947"
Expires: Mon, 11 Nov 2024 22:02:30 GMT
Last-Modified: Thu, 17 Oct 2019 07:18:26 GMT
Server: ECAcc (lac/558B)
Vary: Accept-Encoding
X-Cache: HIT
Content-Length: 1256

<!doctype html>
<html>
<head>
    <title>Example Domain</title>
   ...
Edit Report
Pub: 04 Nov 2024 22:12 UTC
Edit: 04 Nov 2024 22:13 UTC
Views: 32