win 10 mobile https
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);