How can I send correct request with my login name and password from java? How request should look like? I have to make it for my thesis and i dont know how do it. Could someone he开发者_如何学运维lp me?
You can do this with GMail's IMAP interface which is well-supported in Java.
This tutorial may help http://harikrishnan83.wordpress.com/2009/01/24/access-gmail-with-imap-using-java-mail-api/
Information about IMAP http://en.wikipedia.org/wiki/Internet_Message_Access_Protocol
Other resources could be found by searching for 'gmail imap java' or similar.
精彩评论