title: 413 Error with PHP
body: <p>I am sending a HTTP request via cURL and I keep getting this 413 error. The file that I am trying to send is on 21kb and I have checked my php.ini file. Can someone tell me what is wrong? </p>
  
  <p>Here is my code that is directly effecting the HTTP request:</p>
  
  <pre><code>    &lt;?php
  
  /*
   * To change this template, choose Tools | Templates
   * and open the template in the editor.
   */
  
  /**
   * Class for creating test cases to be sent 
   * into TestRail
   * @author Banderson
   */
  class testCase {
  
      /*Function to get the data for each individual test case*/
      function getTestCase($row, $highestColIndex, $PHPobjWorksheet){
  
              echo "&lt;br /&gt;";
              for($col=0;$col&lt;=$highestColIndex;++$col){
                  $v=$PHPobjWorksheet-&gt;getCellByColumnAndRow($col,$row)-&gt;getValue();
                  $cellValue[]=$v;
  
  
  
          }
  
      return $cellValue;
  
      }
  
  
      /*Function to set the data for each individual test case*/
      function setTestCase($cellValue){
                  $case[]=array();
                  $case['title'] = $cellValue[0];
                  echo $case['title']. "&lt;- Title"."&lt;br/&gt;";
                  $case['type'] = $cellValue[1];
                  echo $case['type']. "&lt;- Type"."&lt;br/&gt;";
                  $case['priority'] = $cellValue[2];
                  echo $case['priority']. "&lt;- Priority"."&lt;br/&gt;";
  
  
                  /*$case['estimate'] = $cellValue[3];
                  echo $case['estimate']. "&lt;- Estimate"."&lt;br/&gt;";
                  $case['milestone'] = $cellValue[4];
                  echo $case['milestone']. "&lt;- MileStone"."&lt;br/&gt;";
                  $case['refs'] = $cellValue[5];
                  echo $case['refs']. "&lt;- Custom Refs"."&lt;br/&gt;";
                  $case['precon'] = $cellValue[6];
                  echo $case['precon']. "&lt;- Custom Precondition"."&lt;br/&gt;";
                  $case['steps'] = $cellValue[7];
                  echo $case['steps']. "&lt;- Custom Steps"."&lt;br/&gt;";
                  $case['expectedresults'] = $cellValue[8];
                  echo  $case['expectedresults']. "&lt;- Expected Results"."&lt;br/&gt;";
                  $case['testSuite'] = $cellValue[9];
                  echo $case['testSuite']. "&lt;- TestSuite"."&lt;br/&gt;";*/
  
  
                  $caseData=array(
  
                      'Title'=&gt; $case['title'],
                      'Type'=&gt; $case['type'],
                      'Priority'=&gt; $case['priority'],
                      'key'=&gt; "246810",
  
  
                  );
  
                  return $caseData;
  
  
      }
  
      function sendTestCase($caseArgs){
          try{
              $ch = curl_init();
              //$sendData = http_build_query($caseArgs);
  
              $header=array();
              $header[]= "Accept: application/json";
  
              $header[]= "Host: localhost";
              $header[]= "Title=newTitle";
              $header[]= "key=2467810";
  
  
  
              curl_setopt($ch, CURLOPT_URL, 'http://localhost:8888/testrail/index.php?/miniapi/add_case/2');  
              curl_setopt($ch, CURLOPT_POSTFIELDS, $header);
              curl_setopt($ch, CURLOPT_POST, 1);
  
  
  
              curl_exec($ch);
              curl_close($ch);
          }
          catch (HttpException $ex){
              echo $ex."&lt;-Exception";
   }
  
  
      }
  
  }
  
  ?&gt;
  </code></pre>
  
  <p>I would have included my php.ini file, but that is too big. I'm open to any advice! Thank you in advance!</p>