我正在使用LinkedIn API开发iPhone应用程序。我正在发送JSON请求。但我收到400错误。这是我发送的请求
NSString *jsonRequest = [NSString stringWithFormat:@"{\"contentType\":\"linkedin-html\",\"body\":\"hii\"}"];
NSData *postData = [NSData dataWithBytes:[jsonRequest UTF8String] length:[jsonRequest length]];
[self setHTTPBody:postData];
[self setValue:[NSString stringWithFormat:@"%d", [postData length]] forHTTPHeaderField:@"Content-Length"];
[self setValue:@" application/json" forHTTPHeaderField:@"Content-Type"];
错误是什么?