问题
I have the gmail login credintals. Is it possible to login automatically to Gmail if we pass the username and password through url or by CURL.
回答1:
If you rightclick the gmail login page and view source you can find the id's of the user email and login fields.
You can then use these to write a javascript to fill it automatically and submit.
Theres an implementation here you might check http://techtoggle.com/2009/06/how-to-autologin-into-yahoo-hotmail-lycos-mail/
Edit: its not using the languages you mentioned but its a solution all the same. Also, while the link url and article title dont mention gmail there is a gmail version of the javascript on the page
回答2:
You can use the Gmail IMAP interface to access all your mails. Retrieve Your Gmail Emails Using PHP and IMAP - details the process with code examples.
来源:https://stackoverflow.com/questions/6790114/gmail-automatic-login-script