I am using NSURLConnection to communicate and pass/get datas to server. I am sending the request only once but server's access log shows that it is receiving multiple requests.I tried to log the request which i am sending to server but it is printing only once. The code to send request to server is :
NSURL *url=[NSURL URLWithString:[[NSString stringWithFormat:@"%@/services/OtherProcess/Status",serverIP]stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding]];
NSLog(@"Sending URL -> %@",url);
NSMutableURLRequest *theRequest = [NSMutableURLRequest requestWithURL:url];
if(connection)
[connection cancel];
connection=[NSURLConnection connectionWithRequest:theRequest delegate:self];
responseData = [[NSMutableData alloc] init];
I even tried to add breakpoint and found it is called only once. Any help will be useful.