[lxml-dev] lxml forms and cookies...

Douglas Mayle douglas at openplans.org
Tue Dec 23 01:42:41 CET 2008


Hey everyone, I've been trying to use the lxml forms with client  
cookies to handle html logins.  Using cookielib, I'm able to manually  
login to a page using either urllib or urllib2 and have it work.  The  
moment I try to use lxml.html.submit_form(), however, it fails.  I've  
tried sniffing the packets, and it turns out that lxml is never  
sending cookies, which makes me guess that lxml is using neither  
urllib nor urllib2.  How do I use cookes with lxml?

Doug


More information about the lxml-dev mailing list