title: Laravel not making Guzzle HTTP POST request correctly
body: <p>I am working on a megento integration and trying to get the admin access token by making a post request with form data. I tested the route out on Postman and it worked correctly:
  <a href="https://i.stack.imgur.com/CRTlr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CRTlr.png" alt="enter image description here" /></a></p>
  <p>However, when I tried to implement the same request in Laravel with Guzzle Http Client, it seem just cannot make the request properly as if the form data post body is not being recognized, and it keeps showing me errors saying the field values are required. Here is my request:</p>
  <pre><code>$client = new \GuzzleHttp\Client();
  $response = $client-&gt;post($request['magento_domain'] . '/rest/V1/integration/admin/token', [
      'form_params' =&gt; [
          'username' =&gt; $magento_admin_username,
          'password' =&gt; $magento_admin_password
      ], [
          'Accept' =&gt; 'application/json',
          'Content-Type' =&gt; 'application/json'
      ]
  ]);
  </code></pre>
  <p>and then this is the error I keep getting:
  <a href="https://i.stack.imgur.com/gEXoD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gEXoD.png" alt="enter image description here" /></a></p>
  <p>Update: I had also tried the request like this, it throws the same error:</p>
  <pre><code>$response = $client-&gt;post($request['magento_domain'] . '/rest/V1/integration/admin/token', [
      'form_params' =&gt; [
          'username' =&gt; $magento_admin_username,
          'password' =&gt; $magento_admin_password
      ]
  ]);
  </code></pre>
  <p>I would appreciate any help!</p>