title: NSURLSession.sharedSession().dataTaskWithRequest(request) not returning anything unless there is an error
body: <p>Why aren't any results being printed?</p>
  
  <p>I have been searching all over for an answer.  I've tried many different example blocks of code.  The print statements never fires unless an error is produced.  For example:  If I change the URL to "http" only with nothing else, I naturally get an error and it prints the error.  However, any valid URL produces no result in the print statement.</p>
  
  <pre><code>func post()
  {
      let request = NSMutableURLRequest(URL: NSURL(string: "http://www.thebeerstore.ca")!)
      request.HTTPMethod = "POST"
      let postString = "experiment"
      request.HTTPBody = postString.dataUsingEncoding(NSUTF8StringEncoding)
      let task = NSURLSession.sharedSession().dataTaskWithRequest(request) {
          data, response, error in
          if error != nil {
              print("error=\(error)")
              return
          }
  
          print("response = \(response)")
  
          let responseString = NSString(data: data!, encoding: NSUTF8StringEncoding)
          print("responseString = \(responseString!)")
  
      }
      task.resume()
  }
  </code></pre>
  
  <p>Edit:  It works if I use a playground, but only in a playground.</p>