title: PHP - Not Acceptable - 406 - file could not be found on this server
body: <p>I am getting this error</p>
  
  <blockquote>
    <p><strong>Not Acceptable</strong></p>
    
    <p>An appropriate representation of the requested resource
    /admin/prc_res.php could not be found on this server.</p>
    
    <p>Additionally, a 406 Not Acceptable error was encountered while trying
    to use an ErrorDocument to handle the request.</p>
  </blockquote>
  
  <p>There is a <code>$_POST['additionalinfo']</code> (from html <code>teaxtarea</code>) which is giving me this error. If I remove this, code works fine.</p>
  
  <p>But why I am getting <code>406</code> error?</p>
  
  <p>My index1.php in unnat1ir.in/cdn/</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta charset="utf-8"&gt;
  &lt;title&gt;406 Error&lt;/title&gt;
  &lt;/head&gt;
  &lt;p&gt;&lt;form method="post" action="process.php"&gt;
  &lt;textarea name="test" rows="10" style="width:100%"&gt;&lt;/textarea&gt;&lt;br&gt;
  &lt;button type="submit"&gt;Check for 406 Error&lt;/button&gt;
  &lt;/form&gt;
  &lt;/p&gt;
  &lt;p&gt;This form is posted to &lt;code&gt;process.php&lt;/code&gt;. In &lt;code&gt;process.php&lt;/code&gt; I am just echo-ing &lt;code&gt;$_POST['test']&lt;/code&gt; of the &lt;code&gt;textare with tinymce plugin&lt;/code&gt;. &lt;strong&gt;If little amount of data is entered in textarea, no issues, BUT LARGE DATA will cause &lt;code&gt;406&lt;/code&gt; error&lt;/strong&gt;&lt;/p&gt;
  &lt;h1&gt;Please check by inserting large &lt;code&gt;html&lt;/code&gt; data &lt;/h1&gt;
  &lt;body&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And process.php</p>
  
  <pre><code>&lt;?
  ini_set("log_errors", 1);
  ini_set("error_log", "err.txt");
  ?&gt;
  &lt;h1&gt;The &lt;code&gt; echo ($_POST['test'])&lt;/code&gt; is&lt;/h1&gt;
  &lt;hr&gt;
  &lt;code&gt;&lt;? echo htmlentities($_POST['test']); ?&gt;&lt;/code&gt;
  &lt;hr&gt;
  </code></pre>
  
  <p>All the above codes working fine on <code>localhost</code></p>