title: Alamofire can't get request with php
body: <p>I have got this Swift 4 code</p>
  
  <pre><code>let par: Parameters = [
                            "usn":"Murad",
                            "Password":"monkey"
                        ]
  Alamofire.request("http://www.web.com/ajax/logreg.php",method: .post,parameters:par,encoding: URLEncoding.httpBody).response { response in
  
      if let data = response.data, let utf8Text = String(data: data, encoding: .utf8) {
         print("Data: \(utf8Text)")
     }
  }
  </code></pre>
  
  <p>And this PHP code</p>
  
  <pre><code>print_r($_POST);
  </code></pre>
  
  <p>Now i supposed that this code will print </p>
  
  <pre><code>Array(
     "usn":"Murad",
     "Password":"monkey",    
  )
  </code></pre>
  
  <p>But instead it prints</p>
  
  <pre><code>Array
  (
      [(componentTuple_0)] =&gt; (componentTuple.1)
  )
  </code></pre>