ios - NSURLConnection willSendRequestForAuthenticationChallenge persistence -


the (soon deprecated) nsurlconnectiondelegate allows handle tls trust challenge so:

-(void)connection:(nsurlconnection *)connection willsendrequestforauthenticationchallenge(nsurlauthenticationchallenge *)challenge {     if ([challenge.protectionspace.authenticationmethod isequaltostring:nsurlauthenticationmethodservertrust])         [challenge.sender performdefaulthandlingforauthenticationchallenge:challenge]; } 

assuming same x509 certificate being presented same server, testing shows effect of method cached duration of application execution. method not hit again.

is there way force application forget effect of method after handling has occurred, such subsequent hits same web service force method called?

i think i'm using [challenge.sender cancelauthenticationchallenge:...].


Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -