title: RestKit iOS - Second Time fails
body: <p>I'm using the RestKit for a simple request that returns JSON data.
  I've implemented this code that works only the first time that the viewDidLoad is called, the second time the request is not performed. Why?? </p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
  
      [self planOtpTrip];
  }
  
  -(void) planOtpTrip{
  
          NSLog(@"[INFO] planoOtpTrip");
  
          client = [RKClient clientWithBaseURLString:@"http://myserver/opentripplanner-api-webapp/ws"];
  
          [client setValue:@"application/json" forHTTPHeaderField:@"Accept"]; 
  
          NSDictionary *queryParameters = [NSDictionary dictionaryWithObjectsAndKeys:@"45.028952,7.624598",@"fromPlace",@"45.06123,7.65981", @"toPlace",@"TRANSIT,WALK" ,@"mode", nil];
  
  
  
          // Imposto il nome della API da richiamare
          NSString *getResourcePath = RKPathAppendQueryParams(@"/plan", queryParameters);
  
          [client get:getResourcePath delegate:self];
  
      }
  
      - (void)request:(RKRequest*)request didLoadResponse:(RKResponse*)response {
          // where you handle response object
  
          NSLog(@"Risposta ricevuta: %@", response.URL);  
  
          NSLog(@"Response Body: %@", response.bodyAsString);
  
          id jsonParser = [[RKParserRegistry sharedRegistry] parserForMIMEType:RKMIMETypeJSON];
          NSError *error = nil;
          NSDictionary* parsedResponse = [jsonParser objectFromString:[response bodyAsString] error:&amp;error];
          if (error == nil)
          {
              NSLog(@"GET returned with HTTP Code %d and parsedContent: %@", [response statusCode], parsedResponse);
  
          }
          else
          {
              NSLog(@"Error: %@", error);
          }
  
  
          return [self renderResponse:parsedResponse];
  
  
      }
  </code></pre>