title: How to get response of content type application/x-www-form-urlencoded by passing parameters in laravel
body: <p>I have used Api on to Single Sign In Opt with in Laravel https://sso/{custom_path}/token like this Api created using jwt.
  And on my end in web application passing access token and content type in header to Api call using http client guzzle.
  With content type application/x-www-form-urlencoded with parameters in form_params.
  But in response i am getting missing grant_type. As i am passing grant_type in form_parms array. Is there any other way to resolve this issue. Any valueable response will be considered.</p>
  <p>Code:</p>
  <pre><code>$uri = $this-&gt;userTokenAuthencticateUrl();
          $token = session('token')-&gt;access_token;
          $params['header'] = [
              &quot;Content-Type: application/x-www-form-urlencoded&quot;,
              &quot;Authorization: Bearer $token&quot;
              ];
          $params['form_params'] = array(
                  'grant_type' =&gt; 'xxxxx',
                  'response_include_resource_name' =&gt; 'xxx',
                  'audience' =&gt; 'xxxx', 
                  'permission' =&gt; 'xxxxxx',
              );
              $response = Http::post($uri, $params);
              dd($response-&gt;json());
  </code></pre>
  <p>Ressponse:</p>
  <pre><code>array:2 [▼
    &quot;error&quot; =&gt; &quot;invalid_request&quot;
    &quot;error_description&quot; =&gt; &quot;Missing form parameter: grant_type&quot;
  ]
  </code></pre>