Skip to content

Instantly share code, notes, and snippets.

@avdi
Created February 14, 2014 03:11
Show Gist options
  • Save avdi/8995165 to your computer and use it in GitHub Desktop.
Save avdi/8995165 to your computer and use it in GitHub Desktop.
One line web server that Chrome doesn't like
while true; do { echo -e 'HTTP/1.1 200 OK\r\n\r\n'; echo "Hello, world"; } | nc -l 1234; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment