Duplicate Request NSURLConnection

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 ...

+4
source share
1 answer

the problem may be in the answers you get and how you read them. you can also use CFHTTPMessage, which is the base class of the foundation.

+2
source

All Articles