본문 바로가기

Programming

python post script

import urllib, urllib2, time, random

url = "http://example.com"

login_form = {"postparam1":"1", "postparam2":"2"}
login_req = urllib.urlencode(login_form)
request = urllib2.Request(url,login_req)
response = urllib2.urlopen(request)
data = response.read()
print data


'Programming' 카테고리의 다른 글

Xilinx QEMU bridge mode  (0) 2013.06.14
md5 sqlinjection hash  (0) 2013.06.12
Hook Disclosure with Timing Attack  (0) 2013.06.05
Android APK Decompile  (0) 2013.05.24
Difference between Ntxxx and Zwxxx API  (0) 2013.05.22