title: Translating cURL command to PHP
body: <p>I'm trying to translate the following cURL command to PHP.</p>
  
  <p><code>curl -k https://api.box.com/2.0/files/content -H "Authorization: Bearer 8tuuIMsrf3ShyODVdw" -F filename=@txt.txt -F folder_id=0</code></p>
  
  <p>Here is my attempt:</p>
  
  <pre><code>$url = 'https://api.box.com/2.0/folders/content';
  $params['filename'] = '@txt.txt';
  $params['folder_id'] = '0';
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, $url);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  curl_setopt($ch, CURLOPT_POST, true);
  curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
  curl_setopt($ch, CURLOPT_HTTPHEADER, array("Authorization: Bearer ".$this-&gt;access_token, "Content-Type: multipart/form"));
  $data = curl_exec($ch);
  curl_close($ch);
  </code></pre>
  
  <p>It's not working however. Can anyone help me understand why what I'm doing is wrong and what I can do to modify my code?  Thanks!!</p>