Write a simple HTTP server in Python

来源:互联网 发布:淘宝买小样靠谱店推荐 编辑:程序博客网 时间:2024/05/15 23:47
http://www.acmesystems.it/python_httpserver
index_example3.html
<html><body><form action="send" method="post"><input type="text" name="your_name"></input><input type="submit"></input></form></body></html>

Share your directory with HTTP.
(Make sure there is not file named index.html in your running directory)
$ python -m SimpleHTTPServer 8080

原创粉丝点击