I am trying to automate logging a website and have been unsuccessful. The code below is supposed to log me into the site, but changing the username/password to an incorrect combination does not cause an error or crash to be seen. My goal is to log into this page and save the cookie from the page so that when I spawn IE and navigate to this site I will be logged in. I am using the urllib2 module. Any suggestions?
import urllib
import urllib2
url = ''
values = {'id_l_email': 'XXXXX', 'id_l_password':'XXXXX'}
data = "">req = urllib2.Request(url,data)
response = urllib2.urlopen(req)
the_page = response.read()
--
http://mail.python.org/mailman/listinfo/python-list