通过程序在App Store网站上进行授权

时间:2018-10-17 13:56:11

标签: c# cookies app-store webclient

我想自动从我的帐户上传数据。但是我不能进入。我拥有有关传出请求的所有信息(cookie,用户名,密码)

我使用WebClient:

a.click(function(){a.setup()}),{key:"setup", value:function(){ /code/ }}

我使用cookie:

var url = "https://appstoreconnect.apple.com/login";
var webClient = new WebClient();
webClient.QueryString.Add("accountName", "####");
webClient.QueryString.Add("password", "####");
var data = webClient.UploadValues(url, "POST", webClient.QueryString);
var responseString = UnicodeEncoding.UTF8.GetString(data);

Error: Unhandled Exception: System.Net.WebException: The remote server returned an error: (405) Method Not Allowed.

Chrome使用的请求:

var values = new NameValueCollection
{                    
    {"acn01","####"},
    {"ccl", "####"},
    {"itcdq", "####"},
    ...
    {"wosid", "####"}
};
client.UploadValues(@"https://appstoreconnect.apple.com/login", values);

Error:  Unhandled Exception: System.Net.WebException: The remote server returned an error: (405) Method Not Allowed.

它可以工作,但是我得到的页面我的浏览器不支持

有人可以告诉我如何登录吗?谢谢

0 个答案:

没有答案