Write a simple HTTP server in Python

peterchen-easyli發表於2013-10-24
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

相關文章