Created
January 23, 2014 09:12
-
-
Save sou/8575416 to your computer and use it in GitHub Desktop.
simple http server by "nc"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while true; do ( echo "HTTP/1.0 200 Ok"; echo; echo "TEST TASK" ) | nc -l $PORT; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment