切换到需要放文件的目录
Python2
python -m SimpleHTTPServer 8000
Python3
python -m http.server 8000
文件上传:
原文:http://stackp.online.fr/?p=28
启动文件上传服务:python /usr/local/droopy -m "hi,uploads"
curl文件上传:curl -F "upfile=@/Users/yugj/Documents/hell/test/classes.dex" http://localhost:8000
文件上传页面入口:http://localhost:8000/
来源:oschina
链接:https://my.oschina.net/u/2408030/blog/2252476