title: how to implement POST method encoded parameters request in Alamofire?
body: <p>i am trying to implement post request with encoded parameters but its not working.
  the request on postman is looking like this</p>
  <p><a href="https://i.stack.imgur.com/O06Yh.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p>i am trying with this code</p>
  <pre><code>let params = [ &quot;PIDNO&quot;:self.defaults.value(forKey: &quot;pidno&quot;) as? String ?? &quot;&quot; ,
                       &quot;GENDER&quot;:self.gender!,
                       &quot;TENANTNAME&quot;:self.txtTenantName.text ?? &quot;&quot;,
                       &quot;EMAIL&quot;:self.txtEmailId.text ?? &quot;&quot;,
                       &quot;OFFPHONE&quot;:self.officeMobile.text ?? &quot;&quot;,
                       &quot;MOBILE&quot;:self.txtMobile.text ?? &quot;&quot;
              ] as [String : String]
          
          let url =  SharedInstance.sharedInstance.url+&quot;UpdateTenantProfile/UpdateTenantProfiledetails?profileDetail=&quot;
                  let headers: HTTPHeaders
                      headers = [&quot;Content-type&quot;: &quot;application/json&quot;]
          AF.request(url,method: .post, parameters: params,encoding: JSONEncoding.default, headers: headers)
              .responseJSON { response in
                  debugPrint(response)
                  print(response.result)
              }
  </code></pre>
  <p>but on the server-side, I am getting null parameters</p>