r/tinycode • u/[deleted] • Jun 30 '11
Python simple http webserver. One liner.
http://www.linuxjournal.com/content/tech-tip-really-simple-http-server-python
4
Upvotes
1
Jun 30 '11
I recently used this to pull files off a dying linux box. Even with the filesystem corrupted and not allowing some commands to complete, I was able to start the webserver and backup key files.
Not the fastest web server, but it works.
2
1
u/Liquid_Fire Jun 30 '11
It's not multithreaded unfortunately, so don't expect to be transferring more than one file at a time using this.
1
u/Tarlitz Jun 30 '11
Thanks for sharing, this is really cool. Just tested it with a friend, and he had no problem accessing it. Seems like a very nice way to quickly send some files to others.
5
u/samineru Jun 30 '11
This is a helpful shortcut, but I imagine what's going on in the background really isn't that...tiny.