Re:Unfortunate Python
by manojlds on Monday December 19, 2011 @08:19PM
(#3371886)
Who really uses SimpleHTTPServer in production or for serious work?
[ Parent
| on HN ]
python3 -m http.server 8080
is a useful one-liner to serve a directory over http. There's no good reason to have it in the standard library — mapping directories to html listings and http paths to filesystem paths is a bit idiosyncratic — but now that it's there I'm happy to use it.I've found it useful as a basis for handling HTTP requests in a test framework I'm working on. Not for testing HTTP, mind you, just as an adjunct for other tests. The 'one header line per packet' responses are a little idiosyncratic though!
Re:Unfortunate Python
by mattdeboard on Tuesday December 20, 2011 @12:31AM
(#3372424)
In my short time as a professional developer I have learned to never doubt the silly things people do sometimes (including me)