Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1021
  • Last Modified:

405 Method not allowed with formmail

Hello,
We are moving our website from a linuix server to a windows 2003 server.

One of our forms uses formmail, but when it access the file

You can see the form at:
http://208.109.190.133/$sitepreview/viyachts.com/_forms/availability.php

Enter in an email address.
Click the submit form button.

And you get the error page:
405
Method Not Allowed
The HTTP verb used to access this page is not allowed.
0
CyberRazz32
Asked:
CyberRazz32
1 Solution
 
FishMongerCommented:
Are you using IIS?  If so, it might be that it's not configured to allow POST requests.

How to Resolve an HTTP 405 Resource not allowed Error in IIS:
http://www.somacon.com/p126.php
0
 
CyberRazz32Author Commented:
I tried the solution, but I still get the same error.
It is a formmail file, so the file type is just file (no extension).
Is there something else I would have to map?
0
 
ravs120499Commented:
Well, I get "Bad Referer" when I try the url. But:

What is the mime-type the browser is sending when it posts the form (multipart/form-data, etc.)? You need to make sure  the server is configured to handle the request for that mime type. Mapping file extensions is just a Windows-y shortcut to achieve the same thing.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now