title: NSURLSessionUploadTask example in objective-c?
body: <p>Hi I'm using <code>NSURLSessionDataTask</code> in app to for background http call as follows,</p>
  
  <pre><code> NSURLSessionDataTask *postDataTask = [session dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
  </code></pre>
  
  <p>But, I've 2 server say <a href="https://demo.demosite.com" rel="nofollow">https://demo.demosite.com</a> and <a href="http://214.43.45.35/" rel="nofollow">http://214.43.45.35/</a> when I tried dataTaskWithRequest:request it doesn't support both server.I read <a href="http://hayageek.com/ios-nsurlsession-example/" rel="nofollow">here</a> that dataTaskWithRequest:request doesn't support in background?.</p>
  
  <p><code>NSURLSessionUploadTask</code> support in background when app is not running.
  Can anyone share <code>NSURLSessionUploadTask</code> callback example?</p>