我正在写一个谷歌appengine应用程序,其中存储数据和Web前端。我希望能够在C#程序中下拉这些数据。这意味着我需要对网站进行身份验证(用户必须登录才能查看数据)。我如何进行身份验证?我尝试在WebClient上设置凭据,但我一直在获取Google登录页面。与来自C的谷歌appengine互动#
WebClient client = new WebClient();
client.Credentials = new NetworkCredential("username", "password");
//should it be [email protected] ??
client.BaseAddress = "http://nosoperor-internal.appspot.com";
String s = client.DownloadString("/bank");
//s now contains the google login page, unfortunately
什么样的登陆计划的网站是否聘用? HTTP基本/摘要,表单+ cookie? – 2010-02-21 21:39:24
我不知道,无论默认为appengine – Martin 2010-02-21 22:27:37