Below is my code:
<form id="productForm" method="post" action="test.html">
</form>
Below is my code:
<form id="productForm" method="post" action="test.html">
</form>
Are you using any URL rewriting? (http://forums.asp.net/t/953470.aspx)
In the webserver, is POST allowed for HTML files? Try changing the extension to .ASPX or .PHP
The first that comes to mind is permissions.
What version of IIS ? By default IIS6 prevents a post to a HTML file.
This sounds like the directive is used in your (supposedly) Apache web server? You would need to check the httpd.conf for this directive and make sure that POST is allowed to be called on your file.
Nevertheless does it seem a little odd to POST on a static html file or is mod_rewrite being used to confuse people?
The default for this error is that the POST verb is turned off at the configuration for the server. Is this happening in Cassini or in IIS? In IIS this behavior can be controlled. Also you may want to make sure that the proper handlers are in your web.config if you are still having issues after looking at the IIS configuration (if this ends up being web service related):
<system.web>
<webServices>
<protocols>
<add name="HttpGet"/>
<add name="HttpPost"/>