Skip to content

Instantly share code, notes, and snippets.

@nfarah86
Created May 7, 2016 03:49
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 nfarah86/794ff7dda6b6b49e2754ba535b78cad5 to your computer and use it in GitHub Desktop.
Save nfarah86/794ff7dda6b6b49e2754ba535b78cad5 to your computer and use it in GitHub Desktop.
iOS App Makes a Request to the Server
// omitted code
-(void)sendEmergencyRequest;
{
NSMutableDictionary * dictOfCredentials = [[NSMutableDictionary alloc]init];
NSURL *url = [NSURL URLWithString:@"http://rescue-nfh.herokuapp.com/emergency_run"]; //URL refer to hostName
[self sendRequestToURL:url requestBody:dictOfCredentials];
}
// omitted code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment