From Ed Taekema's weblog, a reminder about how to create a web server in one line of Python:
python -c 'import SimpleHTTPServer;SimpleHTTPServer.test()'
This starts a server listening on port 8000, serving files from its launch directory. If you just hit the server (
http://localhost:8000/) it will by default serve
index.html doesn't exist, it will give you a directory listing. Also, the server will provide only those files residing in or below the current working directory; e.g.
http://localhost:8000/../ resolves to the default document.
Wish I'd seen Ed's note this morning...
file:/// URLs. This would be handy as a jqUnit test, as well.
 Reminder? It's been a long time since I read "Internet Programming with Python" :-)