引入JSONKit.h
NSMutableDictionary d = [[NSMutableDictionary alloc] init];
[dsetObject:@""forKey:@"School"];
[dsetObject:@""forKey:@"QQ"];
[dsetObject:@""forKey:@"Email"];
NSData *postData = [[d JSONString] dataUsingEncoding:NSUTF8StringEncoding];
NSString *str = [NSStringstringWithFormat:@"%@%@", kHost, kRegister];
NSURL *url = [NSURLURLWithString:str];
ASIFormDataRequest *request = [ASIFormDataRequestrequestWithURL:url];
// request setRequestHeaders:<#(NSMutableDictionary *)#>
[request appendPostData:postData];
request.shouldAttemptPersistentConnection = NO;
request.timeOutSeconds = kTimeOutSecs;
[request setDelegate:self];
[request startAsynchronous];