none
Windows8 应用商店 httpClient 链接https 基础连接已关闭 RRS feed

  • 问题

  • Windows8 应用商店 httpClient 链接https的时候 捕捉到异常

    基础连接已关闭:无法建立信任关系的SSL / TLS安全通道。

    在windows8 应用商店程序里 怎么通过httpClient访问https网站

    谢谢!

    2013年10月29日 7:02

答案

  • Hi,

    关于Windows 8应用商店里怎么通过httpClient访问https网站,您可以参考以下链接:

    http://msdn.microsoft.com/en-us/library/windows/apps/dn440594.aspx

    MSDN上有一个简单的sample您可以看一下:

    http://code.msdn.microsoft.com/windowsapps/HttpClient-sample-55700664

    在您连接到http server的时候,您需要再Package.appxmainfest里面声明network capabilities.针对访问的

    网络类型的不同申明不同的访问权限。具体参考第一个链接的Set capabilities to enable network  access 这一段。

    祝您好运!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.


    2013年10月30日 2:02
    版主