NSString * strURL = [NSString stringWithFormat:@"%@action=getResForOffer&offerid=%@",SERVER_URL,strOfferID];
NSURL *url = [NSURL URLWithString:[strURL stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
NSMutableURLRequest * request = [NSMutableURLRequest requestWithURL:url];
[request setHTTPMethod:@"GET"];
[request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
[NSURLConnection sendAsynchronousRequest:request queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *error)
{
if (error)
{
NSLog(@"%@",error.description);
}
else
{
NSMutableArray * arrJsonData = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
NSLog(@"Json Data --> %@",arrJsonData);
if (arrJsonData.count)
{
}
}
}];