import httplib, urllib
params = urllib.urlencode({'id':'k1rha','pw':'k1rha','pwch':'k1rha','age':'11','sex':'1','email':'1111'})
headers = {"Content-type":"application/x-www-form-urlencoded"}
conn=httplib.HTTPConnection("223.194.105.120:80")
conn.request("POST","/web7/web300_edit_ok.php",params,headers)
response = conn.getresponse()
#print response.status, response.reason 200 OK
data = response.read()
print data
conn.close()
'Python' 카테고리의 다른 글
[python]ZIP 파일 크랙 python 코드 (0) | 2013.03.26 |
---|---|
[python 2.7] telnetlib를 이용한 telnet 접속하기 (0) | 2012.12.21 |
[ py2exe] setup.py 파일 아이콘 변경 (0) | 2012.09.26 |
[ python 2.7 ] 파이썬 으로 만들어본 리버스 커넥션 + 업로드+ 다운로드 (0) | 2012.09.26 |
[python 2.7 ] 경로에서 파일명이나 경로만 파싱하기 (0) | 2012.09.26 |