gpt4 book ai didi

PHP - Not Acceptable - 406 - 在此服务器上找不到文件

转载 作者:行者123 更新时间:2023-11-28 00:59:58 25 4
gpt4 key购买 nike

<分区>

我收到这个错误

Not Acceptable

An appropriate representation of the requested resource /admin/prc_res.php could not be found on this server.

Additionally, a 406 Not Acceptable error was encountered while trying to use an ErrorDocument to handle the request.

有一个 $_POST['additionalinfo'](来自 html teaxtarea)给我这个错误。如果我删除它,代码可以正常工作。

但为什么我会收到 406 错误?

我的index1.php在unnat1ir.in/cdn/

<!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 上运行良好

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com