title: Using manager.request with POST
body: <p>I want to send a <code>POST</code> request with Alamofire <code>SessionManager</code>.</p>
  
  <p>I read the documentation on 
  <a href="https://github.com/Alamofire/Alamofire/blob/master/Documentation/Alamofire%204.0%20Migration%20Guide.md#parameter-encoding-protocol" rel="nofollow noreferrer">https://github.com/Alamofire/Alamofire/blob/master/Documentation/Alamofire%204.0%20Migration%20Guide.md#parameter-encoding-protocol</a></p>
  
  <p>but I don't see an example for using request and <code>POST</code>, only upload.</p>
  
  <p>The examples it gives:</p>
  
  <pre><code>let parameters: Parameters = ["foo": "bar"]
  
  Alamofire.request(urlString, parameters: parameters) // Encoding =&gt; URLEncoding(destination: .methodDependent)
  Alamofire.request(urlString, parameters: parameters, encoding: URLEncoding(destination: .queryString))
  Alamofire.request(urlString, parameters: parameters, encoding: URLEncoding(destination: .httpBody))
  
  // Static convenience properties (we'd like to encourage everyone to use this more concise form)
  Alamofire.request(urlString, parameters: parameters, encoding: URLEncoding.default)
  Alamofire.request(urlString, parameters: parameters, encoding: URLEncoding.queryString)
  Alamofire.request(urlString, parameters: parameters, encoding: URLEncoding.httpBody)
  </code></pre>
  
  <p>My code is:</p>
  
  <p><code>
  manager.request(url, method: .post, parameters: parameters, encoding: .url)
                  .responseJSON { response in
                      fulfill(response)
              }
  </code></p>
  
  <p>which conforms to the method signature (from what I can tell) but I get an error "Extra parameter <code>method:</code> in call.</p>