且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何通过C#的Google帐户以编程方式退出?

更新时间:2023-02-20 20:56:03

Prabhu.

我建议您使用Http Analyzer来确定需要实现的内容.登出期间在分析器中了解请求,您将发现如何以实际的方式处理Web请求.

我设法跟踪了第一个注销请求.这是分析仪的信息:

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:

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



以这种方式继续.而且不要忘记cookie.处理此类任务后,我花了一些时间来处理Cookie.

如果我的解决方案对您有帮助,请接受并投票.



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.