Your actual problem is not using NSURLConnection. ios9 will handle it even if it is also deprived. Here's the problem with the HTTP request that you use from ios9 apple, discourages using the HTTP request as part of application transport security (ATS)
From the Apple documentation:
“Application Transport Security (ATS) provides the best practice for secure connections between the application and its rear end. ATS prevents accidental disclosure of information, provides secure default behavior and is easily adaptable; It is also included by default in iOS 9 and OS X v10.11. You must accept the ATS as soon as possible, whether you are creating a new application or updating an existing one.
If you are developing a new application, you should use only HTTPS. If you have an existing application, you should use HTTPS as much as you can right now, and create a migration plan for the rest of your application as soon as possible. In addition, your communication through a higher level API must be encrypted using TLS version 1.2 with direct secrecy.
If you try to establish a connection that does not meet this requirement, an error occurs. If your application needs to make a request to an insecure domain, you must specify this domain in your application. Info.plist file. "
You can get around this by adding this key to your project info.plist
<key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict>
link and link to ios9 ATS blog link
source share