Urllib/httplib and cookies

Lad printers at sendme.cz
Wed Aug 8 09:51:20 CEST 2001


Hi Doug,
Thank you for your email.
What I need is to automate posting to web sites such as mail.yahoo.com
(to check email AUTOMATICALY)  that use cookies to sign-in. In Perl I
can do it very easily. Is it possible to do it in Python as well?
> 
> 
> > Hi,
>  
> > Does UrlLib (any other)module support cookies? An example is
>  
> > mail.yahoo.com where I must first sign-in and then cookies are return
>  
> > for this session and only then I can read my mails.
>  
> > Thanks for help.
>  
> > Ladislav
>  
> > 
> 
> 
> 
> Cookies are just HTTP headers, urllib and httplib don't get involved at 
> 
> that level. There's a 'Cookie' module in the Python library. It's for 
> 
> server-side cookie handling, which I don't think you're interested in. 
> 
> However, it's worth reading. I've attached the code we use for cookies at 
> 
> www.stressmy.com.



More information about the Python-list mailing list