title: Bad Request when setting CURLOPT_POSTFIELDS in PHP cURL
body: <p>PHP VERSION: 8.1</p>
  <p>I am getting a 400 Bad Request error when using Cloudflare Stream via PHP cURL, but only if CURLOPT_POSTFIELDS is set.</p>
  <p>My code:</p>
  <pre class="lang-php prettyprint-override"><code>$tokench = curl_init();
  curl_setopt($tokench, CURLOPT_URL, &quot;https://api.cloudflare.com/client/v4/accounts/&quot;.getenv(&quot;CLOUDFLARE_ACCOUNT&quot;).&quot;/stream/&quot;.urlencode($_GET[&quot;video&quot;]).&quot;/token&quot;);
   curl_setopt($tokench, CURLOPT_POST, 1);
   curl_setopt($tokench, CURLOPT_RETURNTRANSFER, true);
   curl_setopt($tokench, CURLOPT_HTTPHEADER, [&quot;Authorization: Bearer &quot;.getenv(&quot;CLOUDFLARE_TOKEN&quot;), &quot;Content-Type: application/json&quot;]);
   curl_setopt($tokench, CURLOPT_POSTFIELDS, &quot;downloadable=true&quot;);
   $tokenraw = curl_exec($tokench);
   curl_close($tokench);
   $tokenarr = json_decode($tokenraw, true);
  </code></pre>
  <p>$tokenarr[&quot;success&quot;] is false.</p>