The Problem about urllib,who can help me?

max lim at samintl.com
Wed Dec 4 11:38:41 EST 2002


John Hunter <jdhunter at ace.bsd.uchicago.edu> wrote in message news:<mailman.1038966845.12080.python-list at python.org>...
> >>>>> "max" == max  <lim at samintl.com> writes:
> 
>     max> I am a new guy in python and tring to grab the information
>     max> from the website via python,but when i try to send a request
>     max> the response i got below:
> 
> Please post some code.  It's hard to diagnose your problem in the
> dark.
> 
> John Hunter

thank you for reply

The Code is something like that below

params = urllib.urlencode({'csa_id': '******',
'app_login_id':'******', 'csa_own_pwd': '******'})
headers = {"Content-type":
"application/x-www-form-urlencoded","Accept": "text/plain"}
conn = httplib.HTTPConnection('www.xxx.xxxxx.com',80)
conn.request('POST', '/password.asp', params, headers)
response = conn.getresponse()
data = response.read()



More information about the Python-list mailing list