NSString *myRequestString = [NSString stringWithFormat:@"&nbr=%@&import=%@",tmpString,noSpaces];
NSData *myRequestData = [ NSData dataWithBytes: [ myRequestString UTF8String ] length: [ myRequestString length ] ];
NSMutableURLRequest *request = [ [ NSMutableURLRequest alloc ] initWithURL: [ NSURL URLWithString: @"http://mysite.com/contacts.php" ] ];
[ request setHTTPMethod: @"POST" ];
[ request setHTTPBody: myRequestData ];
[ request setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"Current-Type"];
NSData *stringReplys = [ NSURLConnection sendSynchronousRequest: request returningResponse: nil error: nil ];
contactprogress.progress = 1;
StatusLabel.text = @"Status: Complete";
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"" message:stringReplys
delegate:self cancelButtonTitle:@"Ok" otherButtonTitles: nil];
[alert show];
[alert release];
tmpStrings就像= 07919327368和noSpaces一些电话号码是没有空格我不明白为什么这是行不通的格式化的联系人和号码列表?邮政HTTP数据错误
我知道PHP是罚款,我可以通过我的电脑发送后的
谢谢
梅森
这可能是因为数据太大
我一直recieving的SIGABRT信号:S – user393273 2010-08-15 10:34:47