Skip to content

Instantly share code, notes, and snippets.

@jyaunches
Created January 10, 2013 17:44
Show Gist options
  • Save jyaunches/4504138 to your computer and use it in GitHub Desktop.
Save jyaunches/4504138 to your computer and use it in GitHub Desktop.
NSURL *urlToRemoteServer = [NSURL URLWithString:[NSString stringWithFormat:@"%@/some_resource.json%@", YourURLToRemoteServer, additionalParams]];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:urlToRemoteServer
cachePolicy:NSURLRequestReloadIgnoringLocalAndRemoteCacheData
timeoutInterval:15];
[request setHTTPMethod: @"GET"];
NSURLConnection *connection = [[NSURLConnection alloc] initWithRequest:request delegate:self];
[connection start];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment