// Create the request
NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease];
[request setURL:[NSURL URLWithString:@"http://www.shacknews.com/extras/post_laryn_iphone.x"]];
// Set request body and HTTP method
NSString *usernameString = [LatestChattyAppDelegate urlEscape:[[NSUserDefaults standardUserDefaults] stringForKey:@"username_preference"]];
NSString *passwordString = [LatestChattyAppDelegate urlEscape:[[NSUserDefaults standardUserDefaults] stringForKey:@"password_preference"]];
NSString *bodyString = [LatestChattyAppDelegate urlEscape:postContent.text];
NSString *parentId = [NSString stringWithFormat:@"%d", parentPost.postId];
if ([parentId isEqualToString:@"0"]) parentId = @"";
NSString *postBody = [NSString stringWithFormat:@"body=%@&iuser=%@&ipass=%@&parent=%@&group=%d", bodyString, usernameString, passwordString, parentId, storyId];
[request setHTTPBody:[postBody dataUsingEncoding: NSASCIIStringEncoding]];
[request setHTTPMethod:@"POST"];
// Send the request
NSHTTPURLResponse *response;
NSString *responseBody = [[NSString alloc] initWithData:[NSURLConnection sendSynchronousRequest:request returningResponse:&response error:nil]
encoding:NSASCIIStringEncoding];