1

I found this good answer about how to make a HTTP request, I am using the next code

let url = NSURL(string: "http://www.myserver.com")
let task = NSURLSession.sharedSession().dataTaskWithURL(url) {(data, response, error) in
    println(NSString(data: data, encoding: NSUTF8StringEncoding))
}

task.resume()

but I can't get any information about how to send a value using POST by this way, any idea?

Community
  • 1
  • 1
Fernando Santiago
  • 2,128
  • 10
  • 44
  • 75
  • possible duplicate of [How to POST JSON data using NSURLSession in swift](http://stackoverflow.com/questions/27036233/how-to-post-json-data-using-nsurlsession-in-swift) – Pylinux May 04 '15 at 13:42

0 Answers0