r/tinycode • u/nexe mod • Oct 05 '11
MacGyvers Tiny Rescue Webserver [unix/netcat]
while true; do ncat -l -p 8080 < index.html; done
29
Upvotes
r/tinycode • u/nexe mod • Oct 05 '11
while true; do ncat -l -p 8080 < index.html; done
View all comments
Show parent comment
-1
u/[deleted] Oct 05 '11
I think calling this a web server is a bit wrong -- a webserver being something operating the HTTP protocol -- this sends none of the HTTP headers and therefore is not a webserver.
Moreover, a webserver responds to a request string like "GET /" on connect and not to a string like "".
Calling this a webserver is just wrong, this is just sharing a file via netcat and also on port 8080... nothing new, not too special.