I send post request with data to my server:
var syncData = "data=Hello&World"
let urlRequest = NSMutableURLRequest(URL: NSURL(string: url)!, cachePolicy: NSURLRequestCachePolicy.ReloadIgnoringCacheData, timeoutInterval: NSTimeInterval(60))
urlRequest.HTTPMethod = "POST"
urlRequest.HTTPBody = syncData.dataUsingEncoding(NSUTF8StringEncoding)
But problem that server can't decode &(ampersand)
character. On server i get only word "Hello". And it is not the server issue. because i tried to sent this string with java and python and curl.
All works good.
I tried this: NSXMLParser problem with "&"(Ampersand) character
but it doesn't help... Any ideas ?