python cgi 以post方式提交请求
cgi_post.html 代码如下:
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>菜鸟教程(runoob.com)</title> 6 <style> 7 .wrap{ 8 width:300px; 9 height:200px; 10 margin: 0 auto; 11 background:#eee; 12 padding:10px 20px; 13 } 14 </style> 15 </head> 16 <body> 17 <div class="wrap"> 18 <form action="/cgi-bin/get.py" method="post"> 19 站点名称: <input type="text" value="163" name="name"> <br /> 20 站点 URL: <input type="text" value="www.163.com" name="url" /> 21 <input type="submit" value="提交" /> 22 </form> 23 </div> 24 25 </body> 26 </html>

浙公网安备 33010602011771号