title: The HTTP verb POST used to access path '[my path]' is not allowed
body: <p>I am receiving an error that states: "The HTTP verb POST used to access path '[my path]' is not allowed.".</p>
  
  <p>The error is being caused by the fact that I am implementing an HTML form element that uses the POST method and does not explicitly define an .aspx page in its ACTION parameter.</p>
  
  <p>For example:</p>
  
  <pre><code>&lt;form action="" method="post"&gt;
    &lt;input type="submit" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>The HTML above is on a file at "/foo/default.aspx".</p>
  
  <p>Now, if the user points the URL to the root directory "foo" without specifying the aspx file (i.e. "http://localhost/foo") and then submits the form, the error "The HTTP verb POST used to access path '/foo' is not allowed." will be thrown.</p>
  
  <p>However, if the user goes to "http://localhost/foo/default.aspx" and then submits the form, all goes well (even if the ACTION parameter is left empty).</p>
  
  <p>Note: If I explicitly add the name of the .aspx (default.aspx) page to the ACTION parameter, no errors are thrown. So the example below works fine regardless if the user defines the name of the file in the URL or not.</p>
  
  <pre><code>&lt;form action="default.aspx" method="post"&gt;
    &lt;input type="submit" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I was curious as to why the error was being thrown, so I read a <a href="http://support.microsoft.com/kb/942051" rel="nofollow">Microsoft KB</a> that states</p>
  
  <blockquote>
    <p>This problem occurs because a client
    makes an HTTP request by sending the
    POST method to a static HTML page.
    Static HTML pages do not support the
    POST method.</p>
  </blockquote>
  
  <p>I suppose the core of the explanation makes sense, however in my case, my form is not being sent to a static html page - it's being sent to the same page that the html form lives on (default.aspx)... this is implicit to an ACTION param that is left empty.</p>
  
  <p>Is it possible to configure IIS (or otherwise) that will allow us to do form POSTing and keep the ACTION param empty?</p>