Skip to content

Instantly share code, notes, and snippets.

@toranb
Created April 10, 2011 15:02
Show Gist options
  • Save toranb/912410 to your computer and use it in GitHub Desktop.
Save toranb/912410 to your computer and use it in GitHub Desktop.
- (void) viewDidLoad
{
NSURL *url = [NSURL URLWithString:@"http://www.google.com"];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:60.0];
[request setHTTPMethod:@"GET"];
[[NSURLConnection alloc] initWithRequest:request delegate:self];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment