Skip to content

Instantly share code, notes, and snippets.

@peerasak-u
Created October 7, 2013 14:54
Show Gist options
  • Select an option

  • Save peerasak-u/6869328 to your computer and use it in GitHub Desktop.

Select an option

Save peerasak-u/6869328 to your computer and use it in GitHub Desktop.
NSURLRequest * urlRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://fireoneone.com"]];
NSURLResponse * response = nil;
NSError * error = nil;
NSData * data = [NSURLConnection sendSynchronousRequest:urlRequest
returningResponse:&response
error:&error];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment