...">

POST HTTP verb used to access path '/test.html' not allowed

Below is my code:

<form id="productForm" method="post" action="test.html"> </form> 
+4
source share
5 answers

Do you use URL rewriting? ( http://forums.asp.net/t/953470.aspx )

Is POST allowed for HTML files in the web server? Try changing the extension to .ASPX or .PHP

+7
source

I found this post while working on my first Facebook application, so it may or may not be related to your main problem ... but I was getting the same error.

While the Canvas URL value must end with "/", the table URL can be a fully qualified page (for example, http: // [DOMAIN / DIRECTORY-PATH] /Default.aspx).

I work locally, so http: // localhost: 4604 / Main / Default.aspx worked for me.

The HttpGet, HttpPost protocols do not seem to be required in web.config (although this fix still works with them there).

+4
source

The first thing that comes to mind is permissions.

What version of IIS? By default, IIS6 prevents the post from being posted to an HTML file.

0
source

Does this look like the directive is being used on your (supposedly) Apache web server? You will need to check httpd.conf for this directive and make sure that POST is allowed to be called in your file.

However, does this seem a bit odd for a POST in a static html file, or is mod_rewrite used to embarrass people?

0
source

By default, this error is that the POST verb is disabled in the configuration for the server. Does this happen in Cassini or in IIS? In IIS, this behavior can be controlled. You can also make sure that the proper handlers are in your web.config if you still have problems after looking at the IIS configuration (if it is ultimately related to the web service):

 <system.web> <webServices> <protocols> <add name="HttpGet"/> <add name="HttpPost"/> 
0
source

Source: https://habr.com/ru/post/1300449/


All Articles