python -m SimpleHTTPServer 8080 #不指定端口默认为8000

 

SimpleHTTPServer源码写了一个支持上传功能的版本。我贴到附件。