【问题标题】:Your browser's cookie functionality is turned off. Please turn it on您的浏览器的cookie功能被关闭。请开启
【发布时间】:2012-09-19 06:11:42
【问题描述】:

我正在尝试通过发布数据登录Gmail

这是我的代码:

     HttpWebRequest hi = (HttpWebRequest)HttpWebRequest.Create("https://www.google.com/accounts/ServiceLoginAuth?service=mail");
     hi.Method = "POST";
     //string PostData = "continue=https%3A%2F%2Fmail.google.com%2Fmail%2F%3Ftab%3Dwm&service=mail&rm=false&dsh=-28214021908461826&ltmpl=default&scc=1&GALX=6-CDla8snug&pstMsg=1&dnConn=&checkConnection=youtube%3A1271%3A1&checkedDomains=youtube&timeStmp=&secTok=&Email=EMAILADDRESS4u&Passwd=PASSWORD&signIn=Sign+in&rmShown=1";
     hi.ContentType = "application/x-www-form-urlencoded";
     byte[] post = UnicodeEncoding.UTF8.GetBytes(PostData);
     Stream stream = await hi.GetRequestStreamAsync();
     stream.Write(post, 0, PostData.Length);
     WebResponse response = await hi.GetResponseAsync();
     string pageSource;   
     using (StreamReader sr = new StreamReader(response.GetResponseStream()))
     {
         pageSource = sr.ReadToEnd();
     }
     mywebview1.NavigateToString(pageSource);

但是当我尝试运行它时,我得到一个错误。我该如何解决这个问题?

Your browser's cookie functionality is turned off. Please turn it on.

【问题讨论】:

  • 现在我们只需要一点社会工程/研究来获取您的电话号码,并且我们都可以访问您的谷歌帐户吗?!

标签: c# xaml


【解决方案1】:
猜你喜欢
  • 2023-01-20
  • 1970-01-01
  • 2016-06-01
  • 2018-02-25
  • 2017-12-20
  • 1970-01-01
  • 2015-06-13
  • 2014-06-15
  • 1970-01-01
相关资源
最近更新 更多