Click here to Skip to main content
15,889,810 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi. I'm Prabhu.

I'm developing a bot application and I didn't manage to sign out. What should I do for that?

I have already automated following steps:

1. Open the gmail sign in page.
2. Automatically enter the username and password.
3. Automatically Enter/click the sign in button.

And now I want to implement the 4th step:

4. Now i wanna choose inbox or sent items or spam or compose mail or sign out.

Who knows how to do it?
Posted
Updated 24-Mar-11 22:30pm
v11
Comments
R. Erasmus 25-Mar-11 3:30am    
Provide a bit more detail about your problem.
Member 8094913 3-Feb-13 23:29pm    
How to programatically logout from gmail in c#

1 solution

Hi, Prabhu.

I advice you to use Http Analyzer to figure out what you need to implement. Learn requests in analyzer during signing out and you'll find out how to do it pragramatically with your web requests.

I managed to track the first request to sign out. And here is the information from analyzer:

VB
(Request-Line):GET /mail/?logout&hl=en HTTP/1.1
Host:mail.google.com


Proceed on in this manner. And don't forget about cookies. I spent a tone of time working with cookies when I have dealt with this sort of tasks.

If my solution will help you please accept it and vote for it.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900