title: NSURLSessionDataDelegate method didReceiveData and others are not called
body: <p>I am having a problem that didReceiveData and didCompleteWithError are not called. Here is my code :</p>
  
  <pre><code>class LoginViewController: UIViewController, NSURLSessionDataDelegate, NSURLSessionDelegate, NSURLSessionTaskDelegate {
  .
  .
  .
  }
  </code></pre>
  
  <hr>
  
  <pre><code>@IBAction func loginAction(sender: AnyObject) {
  
      var sessionConfiguration = NSURLSessionConfiguration.defaultSessionConfiguration()
  
      var session = NSURLSession(configuration: sessionConfiguration, delegate: self, delegateQueue:nil)
  
      let postParams = "email="+"rabcd@gmail.com&amp;password="+"abcd"
  
      let url = NSURL(string:"http://myurl.com/api/v1/user/login")
      let request = NSMutableURLRequest(URL: url!)
  
      request.HTTPMethod = "POST"
  
      request.HTTPBody = postParams.dataUsingEncoding(NSUTF8StringEncoding, allowLossyConversion: false)
  
      let task = session.dataTaskWithRequest(request)
  
  
      task.resume()
  
  
  }
  </code></pre>
  
  <p>These are delegates I implemented</p>
  
  <pre><code>func URLSession(session: NSURLSession, dataTask: NSURLSessionDataTask, didReceiveResponse response: NSURLResponse, completionHandler: (NSURLSessionResponseDisposition) -&gt; Void) {
  
  }
  
  func URLSession(session: NSURLSession, dataTask: NSURLSessionDataTask, didReceiveData data: NSData) {
  
  }
  
  func URLSession(session: NSURLSession, task: NSURLSessionTask, didCompleteWithError error: NSError?) {
  
  }
  </code></pre>
  
  <p>Here I watched with break points </p>
  
  <p><code>didReceiveResponse</code> is called but other two are not getting called.</p>
  
  <p>Please help !</p>