手机端下拉列表
400-002-9968

博客 > 无法应用DELETE、PUT或PATCH HTTP请求怎么办?

无法应用DELETE、PUT或PATCH HTTP请求怎么办?

  • 标签:
  • delete
  • put
  • patch
  • http

浏览量:7003次评论:0次

作者:Christina时间:2019-09-06 05:05:28

适用版本:
Plesk for Windows


问题
无法将 DELETE、PUT 或 PATCH HTTP 请求应用到扩展名为 .php 的文件,出现如下错误信息:
405 - HTTP verb used to access this page is not allowed
The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access


原因
没有为相应的处理程序/文件扩展名注册特定的 HTTP 请求类型。


解决方案
为 .php 处理程序添加 DELETE、PUT 或 PATCH 请求:
1. 打开 IIS Manager 并在导航面板中选择站点。
2. 进入 Handler Mappings > 双击 PHP-php > 点击 Request Restrictions > Verbs.
3. 请务必确保 Verbs 标签中列有 DELETE、PUT 或 PATCH 请求:


我的评论

还未登录?点击登录

微信扫码沟通
微信扫码沟通

微信扫码沟通

售前咨询
合作
售后
return head