看板 Python 關於我們 聯絡資訊
※ 引述《Reinhard (偽ABJ)》之銘言: : 感謝建議 不過我讀了一下還是沒很懂… : <form name="form1" method="post" action="action.php"> : Telephone: : <input type="text" name="telephone"> : <input type="submit" value="submit"> : </form> : : 建議你讀一下 HTTP spec;HTTP server 接 POST request 的時候並不需要表單 import urllib params = urllib.urlencode({'telephone': '0933123456'}) result = urllib.urlopen('http://example.com/action.php', param) print(result) == 你的問題在於你對 http protocol 似乎不清楚?去書局翻一翻有介紹 http 的網路概論吧 還是說你要找的是類似 perl 的 Mechanize 模組?那可以用這個: http://wwwsearch.sourceforge.net/mechanize/ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.194.141.57
Reinhard:了解了 感謝指教 09/04 22:10