title: POST Request in Swift with key-value pairs
body: <p>I have to make a post request and receive a response in Swift. I need to add values to the request ​​in key-value pairs format and then I get an answer (0 or 1). I don't know how to add the Dictionary values to the request.:</p>
  
  <pre><code>    var url = NSURL(string:"www.myurl.com")
      var request = NSMutableURLRequest(URL: url!)
      request.HTTPMethod = "POST"
      var params = ["email":"\(txtEmail.text)", "passw":"\(txtPassword.text)"] as Dictionary
      let data = //HOW CAN I LOAD THE DATA TO THE HTTPBODY REQUEST??
      request.HTTPBody = data
      var connection = NSURLConnection(request: request, delegate: self, startImmediately: false)
  </code></pre>
  
  <p>Thanks in advance.</p>