Hi all, I want to use python to access to https server, like "https://212.218.229.10/chinatest/"
If open it from IE, will see the pop-up login windows like this
I tried several ways but always only get page for" HTTP Error 401.2 -
Unauthorized" error. ( myusername and mypassword are all correct)
Below is my code:
import urllib2
values = {
'user' : "myusername",
"pass' : "mypassword" }
data = urllib2.urlencode(values)
t = urllib2.urlopen('https://212.218.229.10/chinatest/',data)
print t.read()
where I am wrong ?
Thank you very much.
Best Regards
Karen Wang
<<image001.jpg>>
-- http://mail.python.org/mailman/listinfo/python-list
