ios - NSURLRequest setting body to null when NTLM -
i'm using charles view traffic between app , server. there 3 steps in ntlm handshake. 2 failures , success. however, on success step, nsurlrequest body null. i'm not setting anywhere in app, , can assume somewhere deep inside ios framework itself.
once authenticated, requests body stay should. during handshake breaks.
fwiw, here's piece of code sets auth block
[[operation httprequestoperation] setwillsendrequestforauthenticationchallengeblock:^(nsurlconnection *connection, nsurlauthenticationchallenge *challenge) { if (challenge.previousfailurecount <= 0) { nsurlcredential *credential = [self credential]; [[challenge sender] usecredential:credential forauthenticationchallenge:challenge]; } else { [[rkobjectmanager sharedmanager].operationqueue cancelalloperations]; [[nsnotificationcenter defaultcenter] postnotificationname:nsnotificationname_authenticationfailed object:nil]; [[challenge sender] cancelauthenticationchallenge:challenge]; } }]; has else run across this?
Comments
Post a Comment