Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Netcat HTTP Server
cat >index.http <<EOF
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Server: netcat!
<!doctype html>
<html><body><h1>A webpage served by netcat</h1></body></html>
while true; do cat index.http | nc -l 8000; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment