Skip to content

Instantly share code, notes, and snippets.

@toranb
Created April 11, 2011 00:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toranb/912877 to your computer and use it in GitHub Desktop.
Save toranb/912877 to your computer and use it in GitHub Desktop.
HttpWithObjectiveCViewController.m
- (void)viewDidLoad
{
responseData = [NSMutableData new];
NSURL *url = [NSURL URLWithString:@"http://toranbillups.com/phone/AddSuggestion"];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:60.0];
[request setHTTPMethod:@"POST"];
[[NSURLConnection alloc] initWithRequest:request delegate:self];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment