You usually get 405 on a POST when the URL is deemed to be a "static" file
(like HTML) which cannot handle processing POST data. That's why IIS says
POST is not allowed -- because it doesn't think the URL is dynamic.
i.e. You do not have Execute Permission of "Scripts" or "Scripts and
Executables" set for the URL. Or, you do not have the URL extension mapped
to a CGI EXE/ISAPI DLL.
It has NOTHING to do with the Write Permission in IIS nor Write ACL of IUSR.
Remove those immediately if you do not want to be hacked.
--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Dmitriy" <whatyoumaycallit DeleteThis @mail.ru> wrote in message
news:c6f901c3b9f2$39efb1e0$a601280a@phx.gbl...
Hello,
My server is:
Windows 2000 Advanced, SP4
IIS 5
PHP 4.3.4 installed as an CGI extension
I'm getting HTTP 405 "Resource not allowed" error when
using a form with a "POST" method. "GET" method works
well, however. When I telnet to port 80 and try to make a
POST request to a .php file, I'm getting:
HTTP/1.1 405 Method not allowed
Server: Microsoft-IIS/5.0
Date: Wed, 03 Dec 2003 23:07:19 GMT
Allow: OPTIONS, TRACE, GET, HEAD
Content-Type: text/html
Content-Length: 112
So I see that there's no POST method listed in Allow
section of the header. I want to be able to use POST, how
can I enable it? Microsoft has no answer on it (i
searched) and neither does google.com. One more thing: is
there's a problem like that with IIS 6 as well? Thanks a
lot!
Dmitriy
>> Stay informed about: HTTP 405 when using POST requests