cannot open webpage which requires authentication

gmguyx gmguyx at
Sat Oct 27 09:29:39 CEST 2007

I tried using urllib.urlopen to open a personalized webpage
( but it doesn't work:

print urllib.urlopen(

Instead of returning, it returns a page asking me to log

So then I tried urllib.urlencode:

data = urllib.urlencode({'action': '
login?', 'login': <mylogin>, 'passwd': <mypassword>})
print urllib.urlopen(, data).read()

However, this doesn't work either. Is there a way to do this? Thanks
in advance.

More information about the Python-list mailing list