I'm trying to do a simple get in iOS (Objective C) using a simulator and not a real device.
    NSMutableURLRequest *newRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:theGetURL]
                                                              cachePolicy:NSURLRequestReloadIgnoringLocalAndRemoteCacheData
                                                          timeoutInterval:10];
    [newRequest setHTTPMethod: @"GET"];
    NSError *requestError2;
    NSURLResponse *urlResponse2;
    NSData *response2 = [NSURLConnection sendSynchronousRequest:newRequest returningResponse:&urlResponse2 error:&requestError2];
    NSString* secondResponse = [[NSString alloc] initWithData:response2 encoding:NSUTF8StringEncoding];
    NSLog(@"error = %@",requestError.localizedDescription);
    NSLog(@"response=%@",secondResponse);
    NSLog(@"url response = %@",urlResponse);
This code works perfectly when I'm passing a simple url. When I try the code with a longer (around 4000 characters) url, the code doesn't work (no error is printed).
I am aware that a post is better for this kind of thing, but my question is, is this expected from a get request?
Also, my url works perfectly in my mac and iOS browsers.
 
     
     
    