how to use post method in python?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jumperbl
    New Member
    • Mar 2008
    • 17

    how to use post method in python?

    I want to execute the query that this code is generating. I know how to open IE and go a page. But it there a way to go directly to the results page of this form?

    Code:
    <form name="test1" method="post"
    action="http://ExternalSQLQuery.asp">
    <input type=hidden name="database" value="bugs">
    <input type=hidden name="sql" value="
    select RecNo,Descrptn,CfgItem from (
    	select RecNo,Disp,Descrptn,Status,CfgItem from Issue 
    	left join (
    		Select ISSUE,CfgItem from RepCfg,TRLNK002 where RepCfg.FormID = TRLNK002.REPCFG
    		) as A on Issue.FormID = A.ISSUE
    	) as B
    where Descrptn like '%class%' or CfgItem like '%network%'
    order by RecNo
    ">
    <input type=submit name="Run query">
    </form>
Working...