title: AFNetworking JSON request not working
body: <p>I'm trying to start this operation and its not even getting to the NSLOG.
  I guess its something with my stringUrl, maybe its not suppose to work like this?</p>
  
  <p>This is my code:</p>
  
  <pre><code>NSString *stringUrl = [[NSString alloc]initWithFormat:@"http://example.com/add_user.php?username=%@&amp;password=%@&amp;country=%@&amp;email=%@",[self.usernameTextField text],[self.passwordTextField text], countrySelected, [self.emailTextField text]];
  
  NSURL *url = [NSURL URLWithString:stringUrl];
  NSURLRequest *request = [NSURLRequest requestWithURL:url];
  
  AFJSONRequestOperation *operation = [AFJSONRequestOperation JSONRequestOperationWithRequest:request success:^(NSURLRequest *request, NSHTTPURLResponse *response, id JSON) {
      NSDictionary *dict = JSON;
      NSLog(@"IP Address: %@", [JSON valueForKeyPath:@"item"]);
  } failure:nil];
  
  [operation start];
  </code></pre>
  
  <p>Edit:
  this is what i got from the failure block:</p>
  
  <blockquote>
    <p>Error Domain=AFNetworkingErrorDomain Code=-1016 "Expected content type {(
        "text/json",
        "application/json",
        "text/javascript"
    )}, got text/html" UserInfo=0xa2b4300 {NSLocalizedRecoverySuggestion={"type":"1","item": "User added successfully."}
    , AFNetworkingOperationFailingURLRequestErrorKey=http://EXAMPLE.com/add_user.php?username=aaasafasfasf&amp;password=aaa&amp;country=Angola&amp;email=aaaasfasfasfasfasf>, NSErrorFailingURLKey=<a href="http://EXAMPLE.com/add_user.php?username=aaasafasfasf&amp;password=aaa&amp;country=Angola&amp;email=aaaasfasfasfasfasf" rel="nofollow">http://EXAMPLE.com/add_user.php?username=aaasafasfasf&amp;password=aaa&amp;country=Angola&amp;email=aaaasfasfasfasfasf</a>, NSLocalizedDescription=Expected content type {(
        "text/json",
        "application/json",
        "text/javascript"
    )}, got text/html, AFNetworkingOperationFailingURLResponseErrorKey=}</p>
  </blockquote>