I use NSURLConnection to send a request to the server and receive a response as follows:
cmdConn = [[[NSURLConnection alloc] initWithRequest:req delegate:self startImmediately:YES] autorelease];
and get the answer and data in their delegates. didReceiveData:(NSData *)data and connection didReceiveData:(NSURLResponse *)response connection didReceiveData:(NSData *)data and connection didReceiveData:(NSURLResponse *)response
everything works well, but the problem is that I often check the server side (not all the time). I get a duplicate request. I checked everything in my code, and also on the server side, it seems the problem is with NSURLConnection .
please help me in this problem if you have an idea ...
source share