文字列をサーバーに投稿しようとしています。以下にこれらのコードがあり、動作することがわかっていますが、少なくとも 1 つの EMPTY エントリをデータベースに追加した後でのみです (基本的には "" のようにデータベースに表示されます)。NSURLRequest がこのような奇妙な動作をする理由がわかりません。誰でも理由を教えてもらえますか?
NSMutableString *postString = [NSMutableString stringWithString:@"http://website.com/post.php"];
[postString appendString:[NSString stringWithFormat:@"?loc=%@",locationBox.text]];
NSMutableURLRequest* request = [[NSMutableURLRequest alloc]initWithURL:[NSURL URLWithString:postString] cachePolicy:NSURLCacheStorageNotAllowed timeoutInterval:3];
[request setHTTPMethod:@"POST"];
postConnection = [[NSURLConnection alloc]initWithRequest:request delegate:self startImmediately:YES];