I\'m fairly new to objective-c, and am looking to pass a number of key-value pairs to a PHP script using POST. I\'m using the following code but the data just doesn\'t seem to b
This is wrong:
[NSData dataWithBytes:[post UTF8String] length:[post length]]
The length should be expressed in bytes not in count of UTF8 characters. Instead of this line you should use:
NSData *data = [post dataUsingEncoding: NSUTF8StringEncoding];