Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

HTTP 405 when using POST requests

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  IIS stops serving ASP pages - here's my IISState ..  
Author Message
whatyoumaycall

External


Since: Dec 03, 2003
Posts: 2



(Msg. 1) Posted: Wed Dec 03, 2003 6:07 pm
Post subject: HTTP 405 when using POST requests
Archived from groups: microsoft>public>inetserver>iis (more info?)

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 
Back to top
Login to vote
consultant_mcn1

External


Since: Nov 13, 2003
Posts: 47



(Msg. 2) Posted: Wed Dec 03, 2003 6:15 pm
Post subject: Re: HTTP 405 when using POST requests [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

check "write access" on the site properties


"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<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: HTTP 405 when using POST requests 
Back to top
Login to vote
whatyoumaycall

External


Since: Dec 03, 2003
Posts: 2



(Msg. 3) Posted: Wed Dec 03, 2003 6:26 pm
Post subject: Re2: HTTP 405 when using POST requests [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

just checked write access properties. write access was
disabled. i enabled it. it didn't change the situation.
i've also tried setting NTFS permissions of IUSR_WEBSERVER
to allow write access... it didn't work. is there another
way?


 >-----Original Message-----
 >check "write access" on the site properties
 >
 >
 >"Dmitriy" <whatyoumaycallit.RemoveThis@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
 >
 >
 >.
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: HTTP 405 when using POST requests 
Back to top
Login to vote
someone9

External


Since: Aug 25, 2003
Posts: 2419



(Msg. 4) Posted: Wed Dec 03, 2003 10:33 pm
Post subject: Re: HTTP 405 when using POST requests [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]