Skip to content

Instantly share code, notes, and snippets.

@enil
Last active October 5, 2016 06:06
Show Gist options
  • Save enil/e096023d5d834f69b4b6bb8a98e9114f to your computer and use it in GitHub Desktop.
Save enil/e096023d5d834f69b4b6bb8a98e9114f to your computer and use it in GitHub Desktop.
Use ncat as an HTTP server
ncat -k -l 4000 -o /dev/stderr -c 'echo "HTTP/1.1 200 OK\r\nContent-Length: 0\r\n\r\n"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment