NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"riderfinder.appspot.com/login"]];
[request setHTTPMethod:@"POST"];
[request setValue:@"text/plain"
forHTTPHeaderField:@"Content-type"];
NSString *body = @"username=";
[body stringByAppendingString:accountEntered];
[body stringByAppendingString:@"&"];
[body stringByAppendingString:@"password="];
[body stringByAppendingString:passwordEntered];
NSMutableData *data = [[NSMutableData data] initWithString:body];
//Crashes everything with "SIGABRT" warning/error. Nothing else is said.
[request setHTTPBody:data];
I would appreciate it if anyone has any idea what is going wrong. I narrowed it down to the last line causing the crash through Apple's debugger. Thank you very much!