title: How do download a file with AFNetworking 2.0
body: <p>I am having a hard time sifting through search results for how to do this and I can't find anything concrete in the documentation. I just want to download a file and store in the Documents directory. The file is of type .plist, but I don't need to parse the plist. Like I said I just need to save it to disk.</p>
  
  <p>Do I use AFHTTPRequestOperationManager for this?</p>
  
  <p>This is what I've been trying in general:</p>
  
  <pre><code>AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
      //manager.responseSerializer = [AFPropertyListResponseSerializer serializer];
      manager.responseSerializer = [AFHTTPResponseSerializer serializer];
  
      [manager GET:url parameters:nil
           success:^(AFHTTPRequestOperation *operation, id responseObject) {
               DLog(@"downloaded plist");
           }
           failure:^(AFHTTPRequestOperation *operation, NSError *error) {
               DLog(@"JSON DataError: %@", error);
           }];
  </code></pre>
  
  <p>If I use AFHTTPResponseSerializer I get this:</p>
  
  <pre><code>Error Domain=AFNetworkingErrorDomain Code=-1011 "Request failed: internal server error (500)"
  </code></pre>
  
  <p>If I use AFPropertyListResponseSerializer I get this:</p>
  
  <pre><code>Error Domain=AFNetworkingErrorDomain Code=-1016 "Request failed: unacceptable content-type: text/plain"
  </code></pre>
  
  <p>But I'm not even sure I'm using the correct API.</p>