title: Error:Request failed: bad request (400) login via afnetworking in swift
body: <p>I am new to swift and trying to login via AFNetworking which is working fine with Postman.</p>
  
  <pre><code>let manager = AFHTTPSessionManager(baseURL: NSURL(string: "****"))
  manager.requestSerializer = AFHTTPRequestSerializer()
  manager.requestSerializer = AFHTTPRequestSerializer()
  
  let params = ["user":username,"password":password]
  
  manager.POST("/api/LoginApi/appLogin", parameters: params, success:
      {
          requestOperation, response in
  
          let result = NSString(data: response as! NSData, encoding: NSUTF8StringEncoding)!
  
          print(result)
      },failure: {
          requestOperation, error in print(error)
  </code></pre>
  
  <p>Can somebody mark the issue with this code !!</p>