37,720
社区成员
发帖
与我相关
我的任务
分享
D:\codes\tmp>tree /F
Folder PATH listing for volume D
Volume serial number is 2677-DC99
D:.
└─cgi-bin
main.py
D:\codes\tmp>type cgi-bin\main.py
print ("Content-type:text/html \n\n")
print ("hello")
D:\codes\tmp>C:\Python34\python.exe -m http.server --cgi 8000
Serving HTTP on 0.0.0.0 port 8000 ...
127.0.0.1 - - [27/Aug/2015 10:13:31] "GET /cgi-bin/main.py HTTP/1.1" 200 -
127.0.0.1 - - [27/Aug/2015 10:13:31] command: C:\Python34\python.exe -u D:\codes
\tmp\cgi-bin\main.py ""
127.0.0.1 - - [27/Aug/2015 10:13:31] CGI script exited OK
http://localhost:8000/cgi-bin/main.py