刚做了一个http服务器,仅处理文件上传。想要向http服务器添加功能,以通过http客户端在Get请求中共享文件。
我不知道如何将文件显示给客户端。因此客户端可以使用http://127.0.0.1/filename.avi看到它
综上所述
http客户端正在将文件上传到http服务器。
http客户端正在通过http服务器监视文件
Python 2: SimpleHTTPServer。
python2 -m SimpleHTTPServer 80
Python 3: http.server。
python -m http.server 80