我正在编写一个 google appengine 应用程序,它存储数据并有一个网络前端。我希望能够在 C# 程序中提取这些数据。这意味着我需要对站点进行身份验证(用户必须登录才能查看数据)。我怎样才能像这样进行身份验证?我尝试在 WebClient 上设置凭据,但我一直在获取 google 登录页面。
WebClient client = new WebClient();
client.Credentials = new NetworkCredential("username", "password");
//should it be username@gmail.com ??
client.BaseAddress = "http://nosoperor-internal.appspot.com";
String s = client.DownloadString("/bank");
//s now contains the google login page, unfortunately
最佳答案
关于c# - 从 C# 与 google appengine 交互,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2307500/