D. J. Bernstein
TCP/IP
ucspi-tcp

The http@ program

http@ gets a web page from a remote host.

Interface

     http@ host page port
http@ connects to port on host, sends
     GET /page HTTP/1.0
     Host: host

to host, and prints the contents of the response, removing CR from the end of each line.

If port is not supplied, http@ uses TCP port 80 (HTTP).

If page is not supplied, http@ asks for / from host.

If host is not supplied, http@ connects to the local host.