If it were for me, I won't use the native URL request in Objective C
Try looking for AFNetworking.
Almost ALL iOS apps runs on it. It handles your timeout session in a block, and it is asynchronous, hence, you can control the timeout block as you like.
Furthermore, if you were to check for slow / no internet, you should not use timeout as a threshold to determine whether 3g/4g/Wifi is available. It is not recommended.
Edit :
You can refer to this.
http://stackoverflow.com/questions/8304560...th-afnetworking
It maybe due to your POST request, and it was only fixed iOS 6 and above.
Try setting the timeout period higher, maybe to 60~120 seconds, see will it run correctly or not.
This post has been edited by bandit9956: Nov 11 2015, 12:57 PM
Nov 11 2015, 12:51 PM
Quote
0.0112sec
0.75
6 queries
GZIP Disabled