fun, Python http文件上传 web容器

核能气质少年 提交于 2019-12-04 17:59:40

切换到需要放文件的目录

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/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!