Created
July 26, 2011 07:17
-
-
Save tralamazza/1106179 to your computer and use it in GitHub Desktop.
dummy nc web server
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
{ echo -ne "HTTP/1.1 200 OK\r\nConnection: close\r\nContent-Type: text/plain\r\n\r\n"; node -v; } | nc.traditional -l -p 8001 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First run the little nc script (nc.traditional for ubuntu)
Create a simple http proxy:
run this node script and execute: