title: How to POST data using AFNetworking 2.0?
body: <p>I need to send my data by POST, in variable data.</p>
  
  <p>I do it like this:</p>
  
  <pre><code> AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
  NSDictionary *params = @{@"email" : email, @"password" : pass };
  [manager POST:URLString parameters:params success:^(AFHTTPRequestOperation *operation, id responseObject) {
      NSLog(@"JSON: %@", responseObject);
  } failure:
   ^(AFHTTPRequestOperation *operation, NSError *error) {
       NSLog(@"Error: %@", error); }];
  </code></pre>
  
  <p>and have:</p>
  
  <pre><code>JSON: {
  Data = "&lt;null&gt;";
  Message = "unexpected end of JSON input";
  Result = fail;
  }
  </code></pre>
  
  <p>I know the method</p>
  
  <pre><code>  - (AFHTTPRequestOperation *)POST:(NSString *)URLString
                    parameters:(NSDictionary *)parameters
     constructingBodyWithBlock:(void (^)(id &lt;AFMultipartFormData&gt;))block
                       success:(void (^)(NSURLSessionDataTask *, id))success
                       failure:(void (^)(NSURLSessionDataTask *, NSError *))failure;
  </code></pre>
  
  <p>But how can I send my dictionary in variable data to the web server?</p>