Top "Nsurlsession" questions

NSURLSession is the API for HTTP connections introduced in iOS 7 and OS X 10.

NSURLSessionConfiguration HTTPAdditionalHeaders not set

Authorization header is set in NSURLSessionConfiguration, however it is not attached to NSURLSessionDataTask. Is this a bug in Foundation framework? …

ios nsurlrequest foundation nsurlsession nsurlsessionconfiguration
Get the data from NSURLSession DownloadTaskWithRequest from completion handler

So I'm having hard time understanding something. This are the things I understand about NSURSession : Generally , I have 2 options for (…

ios swift nsdata nsurlsession nsurlsessiondownloadtask
NSURLSession Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"

I am downloading the file in background using NSURLSession background session configuration. - (void)initBackgroundSession { self.backgroundSessionManager = [NSURLSession sessionWithConfiguration:[NSURLSessionConfiguration …

ios iphone nsurlsession nsurlsessiondownloadtask
Pattern for retrying URLSession dataTask?

I'm fairly new to iOS/Swift development and I'm working on an app that makes several requests to a REST …

ios swift nsurlsession nsurlsessiondatatask retry-logic
How to resume NSURLSession download process after app force-quit and app relaunch?

I have implemented NSURLSession for downloading fairly large files from our servers. Now as long as I'm working in foreground …

ios swift nsurlsession forceclose nsurlsessiondownloadtask
NSURLSession invalidateAndCancel: Bad Access

I have a strange problem when I try to invalidate an NSURLSession instance. The code is quite simple: I have …

ios memory-management ios7 exc-bad-access nsurlsession
POST request error: NSURLConnection HTTP load failed iOS 10

I'm new to iOS programming. I want to connect my app to my web service (HTTPS). Why is XCode telling …

swift3 ios10 nsurlsession app-transport-security xcode8.2
HTTP Request in swift not working

I'm trying to learn about working with APIs in Swift. As a good first test, I figured I'd hit the …

ios api swift nsurlsession
Pause,Resume,Cancel Upload Task Using NSURLSession UploadTask

I am developing an app to upload multiple files using NSURLSession, right now my files are successfully uploaded. But now …

ios objective-c ios7 nsurlsession nsurlsessionuploadtask
Using NSURLSession from a Swift command line program

I'm trying to test a little proof-of-concept command line app prior to integrating it into a larger app. What I'm …

macos swift nsurlsession nsrunloop