This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSURL *url = [NSURL URLWithString:@"here your web app url"]; | |
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:60.0]; | |
[request setHTTPMethod:@"GET"]; | |
NSURLResponse *theResponse = NULL; | |
NSError *theError = NULL; | |
NSData *theResponseData = [NSURLConnection sendSynchronousRequest:request returningResponse:&theResponse error :&theError]; NSString *jsonString = [[NSString alloc] initWithData:theResponseData encoding:NSUTF8StringEncoding]; NSLog(jsonString); |