Hi,
I have a hybrid iOS application (packaged with cordova) in which I'm doing a XMLHttpRequest with username and password. When I'm passing the correct credentials, I'm receiving the proper response within 2-3 seconds. But when I pass wrong credentials, the request timeouts at 30 seconds (As in my case, default timeout is set at 30 seconds). I am expecting to receive HTTP status code 401 (Unauthorized) when wrong password is passed. When I perform this same XMLHttpRequest in other webkits (like Chrome), I am receiving the proper HTTP status code 401 (Unauthorized).
Don't know whats going wrong here!! Is this issue somewhat related to the following issues-
https://forums.developer.apple.com/thread/64526
https://forums.developer.apple.com/thread/23603
Please help.
Thanks & Regards,
Suman