title: Getting issue of network connection was lost with AFNetworking
body: <p>I am trying to send a request with AFNetworking, but I'm getting a problem of "The network connection was lost" although the request is good. I'm trying to send the request with a client, and I'm getting the proper response.</p>
  
  <p>The details of the request are:
  URL: <a href="https://www.ez-point.com/search" rel="nofollow">https://www.ez-point.com/search</a>
  Method: GET
  Authorization header: xxxxxxxxxxxxxxx
  Request Payload: "search_text":"value"</p>
  
  <p>Here is the code I'm using:</p>
  
  <pre><code>NSURL *url = [[NSURL alloc] initWithString:@"https://www.ez-point.com/search"];
      NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:url];
      [request setValue:@"xxxxxxx" forHTTPHeaderField:@"Authorization" ];
  
  
  
      [request setHTTPMethod:@"GET"];
  
      NSMutableDictionary *jsonDic = [[NSMutableDictionary alloc]init];
      [jsonDic setValue:@"UJO526" forKey:@"search_text"  ];
      NSData *jsonData = [NSJSONSerialization dataWithJSONObject:jsonDic options:NSJSONWritingPrettyPrinted error:nil];
      [request setHTTPBody:jsonData];
  
  
      [request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
      AFJSONRequestOperation *operation =
      [AFJSONRequestOperation JSONRequestOperationWithRequest:request
              success:^(NSURLRequest *request, NSHTTPURLResponse *response, id JSON) {
                  NSArray *searchResults = JSON;
                  if ([searchResults count] == 1){
                      id result = [searchResults objectAtIndex:0];
                      double latitude = [[result valueForKey:@"latitude"] doubleValue];
                      double longitude = [[result valueForKey:@"longitude"] doubleValue];
                      NSString *ezPoint = [result valueForKey:@"value"];
                      NSString *tags = [result valueForKey:@"tags"];
  
                      [self setAnnotation:latitude  ForLongitude:longitude withEZPoint:ezPoint WithTags:tags];
                  }
              }
              failure:^(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error, id JSON) {
  
              }
       ];
      [operation start];
  </code></pre>
  
  <p>The error I'm getting is:</p>
  
  <p>2013-11-04 15:01:05.143 EZ-POINT[4074:c07] E restkit.network:RKObjectRequestOperation.m:209 GET '<a href="https://www.ez-point.com/search" rel="nofollow">https://www.ez-point.com/search</a>' (0) [2.8806 s]: Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo=0x88b5c30 {NSErrorFailingURLStringKey=<a href="https://www.ez-point.com/search" rel="nofollow">https://www.ez-point.com/search</a>, NSErrorFailingURLKey=<a href="https://www.ez-point.com/search" rel="nofollow">https://www.ez-point.com/search</a>, NSLocalizedDescription=The network connection was lost., NSUnderlyingError=0x1bc83790 "The network connection was lost."}</p>
  
  <p>in the REST Client, I'm doing a GET on <a href="https://www.ez-point.com/search" rel="nofollow">https://www.ez-point.com/search</a> with the parameters, Authorization:xxxxxx and with Request Payload search_text: UJO526</p>
  
  <p><a href="http://chrome.google.com/webstore/detail/rest-console/%E2%80%A6" rel="nofollow">Rest Client used</a> </p>