Top "Nsurlsession" questions

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

NSURLSessionTask never calls back after timeout when using background configuration

I am using NSURLSessionDownloadTask with background sessions to achieve all my REST requests. This way I can use the same …

ios ios7.1 nsurlsession nsurlsessiondownloadtask nsurlsessionconfiguration
NSURLSession Threads: Tracking multiple background downloads

So I'm creating my download on the main thread NSURLRequest *request = [NSURLRequest requestWithURL:download.URL]; NSURLSessionDownloadTask *downloadTask = [self.downloadSession downloadTaskWithRequest:…

ios objective-c multithreading ios7 nsurlsession
Find the Download Progress of a file in swift

I have searched but haven't found a relevant answer only in Objective C. Is there a way to find the …

ios swift download progress nsurlsession
NSURLSession completion block not called

var session = NSURLSession.sharedSession() session.dataTaskWithRequest(urlRequest, completionHandler: {(data: NSData!, response: NSURLResponse!, error: NSError!) in println(data) println(response) println(…

macos ios8 nsurlsession
How do I unit test HTTP request and response using NSURLSession in iOS 7.1?

I'd like to know how to "unit test" HTTP requests and responses using NSURLSession. Right now, my completion block code …

ios objective-c nsurlsession xctest nsurlsessiontask
NSURLSession background download - resume over network failure

After reading the Apple documentation about the background download with the new iOS7 api (NSURLSession), I'm a bit disappointed. I …

ios ios7 nsurlsession
Prevent NSURLSession from caching responses

Why does it cache responses. It returns previously fetched responses. It even works if turning off the network connection. Resetting …

swift caching nsurlsession nsurlcache nsurlsessionconfiguration
How do you know when the NSURLSession object has been invalidated by iOS?

I am seeing an error in my tests where occasionally I get the following iOS error: A background URLSession with …

ios nsurlsession
NSURLSession with Token Authentication

I have the following code in my iOS project and I want to convert to use NSURLSession instead of NSURLConnection. …

ios objective-c ios7 nsurlsession
Domain=NSURLErrorDomain Code=-1001 "The operation couldn’t be completed. (NSURLErrorDomain error -1001.)"

my program is write for upload the picture from the cam,sample code below: #define WEBSERVICE_URL @"http://192.168.0.104/upload.php" …

nsurlconnection afnetworking nsurlrequest nsurlsession xcode6-beta6