I'm using Restkit to communicate with Java Jersey REST server. I'm using a very simple method available on RKClient class, which is:
[[RKClient sharedClient] get:@"/userStatus" delegate:self];
The created methods in mw class are:
- (void)sendRequests
{
[[RKClient sharedClient] get:@"/userStatus" delegate:self];
}
- (void)request:(RKRequest*)request didLoadResponse:(RKResponse*)response
{
if ([request isGET])
{
if ([response isOK])
{
NSLog(@"Retrieved status: %@", [response bodyAsString]);
}
}
}
The problem is that I want to execute this GET several times, but it appears to work just once. Am I doing something wrong?