I am using the functionality of upload images in my application. Application sends the images to server using SOAP request. Recently I made the urls from http to https and I am facing this problem,
Task .<0> HTTP load failed, 0/0 bytes (error code: -1200 [3:-9858])
NSURLConnection finished with error - code -1200
I have tried all changes in info.plist yet it is not working. Could you please help me? Thank you
Ok, look at this ...
if ([challenge.protectionSpace.authenticationMethod
isEqualToString:NSURLAuthenticationMethodServerTrust])
[challenge.sender useCredential:[NSURLCredential
credentialForTrust:challenge.protectionSpace.serverTrust]
forAuthenticationChallenge:challenge];
[challenge.sender
continueWithoutCredentialForAuthenticationChallenge:challenge];
I think it should be
if ([challenge.protectionSpace.authenticationMethod
isEqualToString:NSURLAuthenticationMethodServerTrust])
[challenge.sender useCredential:[NSURLCredential
credentialForTrust:challenge.protectionSpace.serverTrust]
forAuthenticationChallenge:challenge];
else // you need to add an else here
[challenge.sender
continueWithoutCredentialForAuthenticationChallenge:challenge];
EDIT
Also, I see you give the URL as
https://pro-ap.com.au/Mobile/profilepic.asmx?
Remove the last question mark as that is part of the request and will be appended automatically as the request is built.