Urllib/httplib and cookies

Mark Rowe mark21rowe at yahoo.com
Wed Aug 8 04:21:21 EDT 2001


Hello,

If what you are interested in doing is checking your Yahoo mail, I suggest
that you look at poplib module.  If you are interested in using storing and
using cookies in general, this will not apply :)

Mark
"Lad" <printers at sendme.cz> wrote in message
news:e34de21e.0108072351.4c548e8 at posting.google.com...
> 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