【问题标题】:Encoding string and send it as url parameter?编码字符串并将其作为 url 参数发送?
【发布时间】:2011-11-03 04:03:14
【问题描述】:

为什么这个参数不通过:

file.php?t=%26quot%3B%26gt%3B%0A%09%09%09%26lt

相反,它给出:

Forbidden

You don't have permission to access /file.php on this server.

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

如果您删除任何字符,则通过 OK。 参数中的字符串是在 jquery 中生成的。 如何对该字符串进行编码并使其工作?

编辑:这是主机提供商设置的 mod_security 阻止。

【问题讨论】:

    标签: php jquery post


    【解决方案1】:

    可能是您的托管服务提供商的服务器配置设置 - 将该字符串作为 $_GET 参数传递对我有用。

    【讨论】:

      猜你喜欢
      • 2018-05-06
      • 1970-01-01
      • 2018-08-17
      • 1970-01-01
      • 1970-01-01
      • 2014-06-29
      • 1970-01-01
      • 1970-01-01
      • 2013-01-14
      相关资源
      最近更新 更多