我收到此错误
不能接受的
在此服务器上找不到请求资源 /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