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