Hai all,
In my iphone project i need to pass the user name and password to a web server,previously i pass data using GET method and used the url with GET format (eg:
You are sending the request as NSASCIIStringEncoding but looking for NSUTF8StringEncoding
I'd set
NSData *postData = [post dataUsingEncoding:NSUTF8StringEncoding allowLossyConversion:YES];
and
[request setValue:@"application/x-www-form-urlencoded charset=utf-8" forHTTPHeaderField:@"Content-Type"];
however, as Nikolai noted - this would be easier if we knew what the error was :-)