I am using CFNetwork to connect to a h开发者_如何学Pythonttps webservice , whose server is a Verisign certified. I get the appropriate response from the server some times. But the rest of the time I am getting two kind of errors. 1."Operation could not be completed. (kCFStreamErrorDomainSSL error -9807.) 2."Operation could not be completed. (kCFStreamErrorDomainSSL error -4.)"
I am using SDK 3.0 and tested it in 3.1 also. I don't get a consistent result. Please some one help me to solve the issue.
Regards, Krishnan
The problem only occurred in the simulator and not in the Device. So if some one comes across this problem, please check in your device and it should work.
You should check the date and time on your device or simulator. A wrong time/date will prevent you from connecting.
精彩评论