Created
June 10, 2014 20:41
-
-
Save igorkulman/76c9d8f1e79b6fd41c33 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var filter = new HttpBaseProtocolFilter(); | |
#if DEBUG | |
// ******************* | |
// IGNORING CERTIFACTE PROBLEMS | |
// ******************* | |
filter.IgnorableServerCertificateErrors.Add(ChainValidationResult.IncompleteChain); | |
filter.IgnorableServerCertificateErrors.Add(ChainValidationResult.Expired); | |
filter.IgnorableServerCertificateErrors.Add(ChainValidationResult.Untrusted); | |
filter.IgnorableServerCertificateErrors.Add(ChainValidationResult.InvalidName); | |
// ******************* | |
#endif | |
var httpClient = new Windows.Web.Http.HttpClient(filter); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you very much !!!