不允许使用用于访问此页面的IIS 405 HTTP动词发送电子邮件 [英] IIS 405 HTTP verb used to access this page is not allowed email

查看:89
本文介绍了不允许使用用于访问此页面的IIS 405 HTTP动词发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我熟悉IIS,但是没有太多实际经验,因此为什么要来这里.

First off, I'm familiar with IIS however do not have much practical experience, hence why I have come here.

我已经安装了IIS7,并将我的HTML网站,脚本等放入wwwroot文件夹中.我可以在本地浏览该网站,仅出于测试目的.

I have setup IIS7 and put my HTML website, scripts etc into the wwwroot folder. I'm able to browse the website locally just for testing purposes.

我有一个网页,其中包含一个简单的电子邮件表单,该表单使用了Matt的脚本存档:FormMail.pl.提交后,我遇到了这个错误:

I have a webpage with a simple email form which uses Matt's Script Archive: FormMail.pl. Upon submission, I run into this error:

 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.

我不确定此错误或如何解决该错误,因此电子邮件表单可以正常工作.

I'm not sure about this error or how to resolve it so the email form works.

如果您需要有关此问题的任何其他信息,我会提供尽可能多的信息.

If you need any additional information regarding this problem, I'll provide as much info as possible.

谢谢:)

更新:

好,所以我修改了HTML以使用nms脚本.在IIS中,由于未安装CGI和ISAPI,因此必须启用它们.安装完成后,我为* .pl,* cgi;添加了脚本处理程序映射.还向两个处理程序映射中添加了动词GET,HEAD和POST.我比以前:

Ok, so I have modified my HTML to use the nms script. In IIS I had to enable CGI and ISAPI as they weren't installed. Once they were installed I added a Script Handler Mapping for *.pl, *cgi; also added the Verbs GET, HEAD, and POST to both of the Handler Mappings. I than used:

 <!DOCTYPE htmlPUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
 <head>
 <title>Perl Test</title>
 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
 </head>
 <body>
 <h1>Perl is working!</h1>
 </body>
 </html>

测试* .pl和* .cgi是否在本地主机上运行.

To test if the *.pl and *.cgi is working on the localhost.

现在是我被卡住的部分...

Now comes the part where I'm stuck...

当我单击提交"按钮时,它会将我定向到formmail.cgi(由于某些原因,formmail.pl不起作用),但是它仅将我定向到cgi脚本和空白的白页.

When I click on the submit button it directs me to the formmail.cgi (formmail.pl doesn't work for some reason) however it only directs me to the cgi script, and a blank, white page.

推荐答案

405表示您的Web服务器无法识别请求中的HTTP方法(GET,POST,HEAD等).在您的情况下,我认为默认情况下不允许使用.pl扩展名来处理POST请求.请参考此链接(摘自

405 means that your Web Server is not recognizing the HTTP metod(GET,POST,HEAD etc.) in the request. In your case I think that .pl extensions are not allowed by default to handle POST requests. Please refer to this link (taken from here) for creating Handler Mappings.

这篇关于不允许使用用于访问此页面的IIS 405 HTTP动词发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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