我有一个有效的代码块,然后我从控制台应用程序中尝试它:
var client = new RestClient("https://.../Service.svc/json");
client.AddDefaultHeader("client_ip", "..");
var request = new RestRequest("user/auth", Method.POST);
request.RequestFormat = DataFormat.Json;
request.AddBody(new { appkey = "..", user = "d..", password = ".." });
var authorizeResponse = client.ExecuteAsync<AuthResponse>(request, (response) => {
if (response.ErrorException == null)
{
var a = response.Data;
}
});
部署到 Windows Phone 设备的相同代码返回:
为什么状态码 NotFound?在 windows phone 8 中接受来自 https 的证书是否有任何问题?