8上通过SSL使用HttpClient吗

8上通过SSL使用HttpClient吗

本文介绍了我可以在Windows Phone 8上通过SSL使用HttpClient吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我开发了适用于Windows 8和Windows Phone 8的应用程序。我正在使用HttpClient Nuget包。 


HttpClient代码用于从面向公共的RESTful WCF服务获取数据,该服务位于使用SSL的站点上。


代码一直正常工作(对于两个平台),但似乎WP8的认证失败,看起来好像HttpClient代码可能失败,这是我唯一能想到的(它在Lumia 920和Lumia 925设备上工作正常)。 / p>

所以我正在寻求澄清关于在WP8上访问SSL的各种帖子。有人可以100%确认我应该能够使用HttpClient,使用GetAsync方法检索数据(JSON),通过SSL进行通信,还是基于
对WP8上的证书限制等不起作用?


非常感谢,


Wayne。

解决方案


Hi,

I have developed an app for Windows 8 and for Windows Phone 8. For both I'm using the HttpClient Nuget package. 

The HttpClient code is used to get data from a public facing RESTful WCF service, which is on a site using SSL.

The code has been working fine (for both platforms), but appears to have failed certification for WP8, and appears as though the HttpClient code may be failing, and this is the only thing I can think of (it works fine on a Lumia 920 and a Lumia 925 device).

So I'm seeking clarification on various posts I've seen about accessing SSL on WP8. Can someone please 100% confirm that I should be able to use HttpClient, using the GetAsync method to retrieve data (JSON), communicating via SSL, or will that not work based on restrictions with certificates etc on WP8?

Much appreciated,

Wayne.

解决方案


这篇关于我可以在Windows Phone 8上通过SSL使用HttpClient吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 13:19