Skip to content

Instantly share code, notes, and snippets.

@untoreh
Last active April 2, 2018 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save untoreh/3074e1d69ee07492f0ba159f3f6e49f7 to your computer and use it in GitHub Desktop.
Save untoreh/3074e1d69ee07492f0ba159f3f6e49f7 to your computer and use it in GitHub Desktop.

netcat http server

while true ; do nc -l -p 1234 -e 'echo -e "HTTP/1.1 200 OK\n\n $(date)"'; done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment