服务器错误:405-不允许使用用于访问此页面的HTTP动词 [英] server error:405 - HTTP verb used to access this page is not allowed

查看:224
本文介绍了服务器错误:405-不允许使用用于访问此页面的HTTP动词的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个php Facebook应用程序,已将其上传到Microsoft服务器中.当我运行该应用程序时,出现此错误.有人知道原因吗?

I have a php Facebook application which I have uploaded in a Microsoft server. When I run the application i get this error. Does anybody know the cause of this ?

405-不允许使用用于访问此页面的HTTP动词.您的页面 由于无效的方法(HTTP 动词)用于尝试访问.

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.

推荐答案

即使您使用的是IIS或apache,我想您也使用的是静态html页面作为登录页面,并且默认情况下,Web服务器不允许.html页面上的POST或GET动词,facebook通过POST/GET谓词

Even if you are using IIS or apache, in my guess you are using static html page as a landing page, and by default the web server doesn't allow POST or GET verb on .html page, facebook calls your page via POST/GET verb

解决方案是将页面重命名为 .php .aspx 而且您应该很好:)

the solution would be to rename the page into .php or .aspx and you should be good to go :)

这篇关于服务器错误:405-不允许使用用于访问此页面的HTTP动词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆