如何在python中使用post方法?

我想执行此代码正在生成的查询.我知道如何打开IE并进入页面.但是有没有办法直接进入这个表单的结果页面?

选择 | 换行 | 行号
  1. <form name="test1" method="post"
  2. action="http://ExternalSQLQuery.asp">
  3. <input type=hidden name="database" value="bugs">
  4. <input type=hidden name="sql" value="
  5. select RecNo,Descrptn,CfgItem from (
  6.     select RecNo,Disp,Descrptn,Status,CfgItem from Issue 
  7.     left join (
  8.         Select ISSUE,CfgItem from RepCfg,TRLNK002 where RepCfg.FormID = TRLNK002.REPCFG
  9.         ) as A on Issue.FormID = A.ISSUE
  10.     ) as B
  11. where Descrptn like '%class%' or CfgItem like '%network%'
  12. order by RecNo
  13. ">
  14. <input type=submit name="Run query">
  15. </form>
  16.  

标签: python

添加新评论