title: PHP Post - Request Entity Too Large
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5091151/i-am-trying-to-make-a-post-request-to-a-url-using-curl-but-getting-this-error">I am trying to make a POST request to a URL using Curl but getting this error?</a>  </p>
  </blockquote>
  
  
  
  <p>I'm trying to make a POST request to a server using curl with some XML included, but I'm getting the error "Request Entity Too Long" Could someone point out to me what I'm doing wrong? Thanks! :)    </p>
  
  <pre><code>$url = 'http://web1.trueship.com/readyreturns/company/api.php/orders?key=xxxxxxxxxxxxxxxxxx&amp;overwrite=true';
  
  $curl = curl_init(); 
      curl_setopt($curl, CURLOPT_HTTPHEADER, Array("&amp;xml=".$encodedXml)); 
      curl_setopt ($curl, CURLOPT_URL, $url); 
      curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);     
      curl_setopt($curl, CURLOPT_POST, TRUE); 
      $result = curl_exec ($curl); 
      curl_close ($curl); 
      print $result; 
  </code></pre>