Look this code! Perhaps, It can help you with login.<br><a href="http://segfault.in/2010/12/sending-gmail-from-python/">http://segfault.in/2010/12/sending-gmail-from-python/</a><br><br><div class="gmail_quote">2011/4/25 Chris Angelico <span dir="ltr"><<a href="mailto:rosuav@gmail.com">rosuav@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On Tue, Apr 26, 2011 at 7:38 AM, Jayme Proni Filho<br>
<<a href="mailto:listas.programacao@gmail.com">listas.programacao@gmail.com</a>> wrote:<br>
> I can be wrong but I think you can not login in gmail with urllib because I<br>
> think gmail uses another kind of auth.<br>
<br>
</div>Ultimately it should be possible to do the exact same form-fillout and<br>
follow the redirects, just as a browser would. Eventually it'll get<br>
you a cookie. But burying the uid/pwd in the cookie will almost<br>
certainly be wrong.<br>
<br>
ChrisA<br>
</blockquote></div><br><br clear="all"><br>-- <br>---------------------------------------------------------------------------------------<br>Jayme Proni Filho<br>Skype: jaymeproni<br>Twitter: @jaymeproni<br>Phone: +55 - 17 - 3631 - 6576<br>
Mobile: +55 - 17 - 9605 - 3560<br>e-Mail: jaymeproni at yahoo dot com dot br<br>Blogs (Em construção)<br>Programandor: <a href="http://jaymeproni.wordpress.com" target="_blank">http://jaymeproni.wordpress.com</a><br>Sociedade em Ação: <a href="http://sociedaemacao.wordpress.com" target="_blank">http://sociedaemacao.wordpress.com</a><br>
---------------------------------------------------------------------------------------<br><br>