3
我的那个作品则代码块我尝试从控制台应用程序:的Windows Phone 8的请求休息启用HTTPS托管服务使用RestSharp
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的证书是否存在问题?
谢谢你的回答。我已经解决了这个问题:跟踪了这个调用,发现服务上预计会有一个不同的自定义http头。 – 0x49D1