当前位置:首页 > Windows Phone

win 10 mobile https

大滑稽10年前 (2016-07-28)Windows Phone2570
HttpBaseProtocolFilter filter = new HttpBaseProtocolFilter();
///这句话很关键不然 请求不了https
filter.IgnorableServerCertificateErrors.Add(ChainValidationResult.Untrusted);
Uri uri = new Uri(url);
HttpClient httpClient = new HttpClient(filter);
result = await httpClient.GetStringAsync(uri);


扫描二维码推送至手机访问。

版权声明:本文由第★一★次发布,如需转载请注明出处。

本文链接:https://blog.wpers.net/post/6.html

分享给朋友:

“win 10 mobile https” 的相关文章

WP8开发中多分辨率支持详解

WP8开发中多分辨率支持详解

支持的分辨率Windows Phone 8中支持三种分辨率,下表中描述相应分辨率以及与OS 7.1分辨率的缩放关系Resolution分辨率横纵比例OS7.1缩放关系按比例缩放后分辨率WVGA480 × 80015:9未缩放480 × 8…

WebBrowser的NavigateToString中文乱码问题

方法一public static string ConvertExtendedASCII(string HTML) {            StringBuilder str =…

await Request

    由于WP上对HTTP的请求都采用异步的方式,以下代码可以把它变成同步可等待的方式       public static&…

WP8使用MD5加密

WP8使用MD5加密

在WP8中是不支持MD5加密的 …

WP自定义字体

<TextBlock Text="12:02 AM" FontFamily="fonts/DigitalDream.ttf#Digital Dream" FontSize="60&qu…