简体   繁体   中英

CGI Script For Python Webserver

I have a simple python webserver but I want to use the CGI script for file download and upload according to client-request .But I couldnt find the any way of adjusting the CGI except using apache2 ,nginx or etc... Is there any way to adjust cgi script to my python webserver with Bash script or with other way ? Can you give me any advice about it?

为什么不尝试将要下载的文件的地址/位置作为参数传递给该类,然后在<a href>标记中使用该地址/位置将其转换为链接并实现下载功能

U can specify cgi-scripts via CORS and use it for data-transfer. Is that what u looking for ?

echo -e "Content-Type: text/plain\n\n"

Or do u want create an NAS ? There are some on the free market already, called myCloud.

Maybe u could give us some more intel.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM