このエラーが発生しています
受け付けできません
要求されたリソース /admin/prc_res.php の適切な表現がこのサーバーで見つかりませんでした。
さらに、ErrorDocument を使用して要求を処理しようとしたときに、406 Not Acceptable エラーが発生しました。
このエラーが発生する$_POST['additionalinfo']
(html から) があります。teaxtarea
これを削除すると、コードは正常に動作します。
しかし、なぜ406
エラーが発生するのですか?
unnat1ir.in/cdn/ の私の index1.php
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>406 Error</title>
</head>
<p><form method="post" action="process.php">
<textarea name="test" rows="10" style="width:100%"></textarea><br>
<button type="submit">Check for 406 Error</button>
</form>
</p>
<p>This form is posted to <code>process.php</code>. In <code>process.php</code> I am just echo-ing <code>$_POST['test']</code> of the <code>textare with tinymce plugin</code>. <strong>If little amount of data is entered in textarea, no issues, BUT LARGE DATA will cause <code>406</code> error</strong></p>
<h1>Please check by inserting large <code>html</code> data </h1>
<body>
</body>
</html>
そしてprocess.php
<?
ini_set("log_errors", 1);
ini_set("error_log", "err.txt");
?>
<h1>The <code> echo ($_POST['test'])</code> is</h1>
<hr>
<code><? echo htmlentities($_POST['test']); ?></code>
<hr>
上記のすべてのコードは正常に動作しますlocalhost