post data JSON webservice [closed]
you can create a NSURLConnection
set the content type to text/json
and POST
it as a string or you can use ASIHTTPRequest
for easier connection management.
NSURL* url = [NSURL URLWithString:@"http://www.someurl.com"];
ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url];
[request setRequestMethod:@"POST"];
[request setPostValue:[jsonString stringByAddingPercentEscapesUsingEncoding:NSISOLatin1StringEncoding] forKey:@"data"];
[request startAsynchronous];
精彩评论