I’m experiencing some really frustrating problems with the asihttprequest. When I run the code in the simulator, everything works fine, but when debugging on my ipod it has suddenly stopped working.
It used to work just fine from the device as well. I have debugged the code, and most of the time the request fails because secondsSinceLastActivity > [self timeOutSeconds]*1.5 which means there is a timeout. Sometimes the request seems to fail due to a network event, kCFStreamEventErrorOccurred?
I try to connect to the server with https. The certificate authority is a trusted one.
While I was writing this it hit my mind that maybe it’s has something to do with the device handling certificates?
And actually when trying to login to gmail or facebook with safari, a dialog saying that “the identity of the server cannot be verified” is displayed. I suppose that is what causes the request to fail? How come my ipod suddenly don’t trust any of those certificates? I’ve googled this instead but haven’t found any solution.
I’m not sure this is the correct forum, but can anyone help out with this one? Any help is appreciated. Thanks.
I’d start by figuring out why you’re getting problems with gmail and facebook. Is the date/time on the device set correctly?