title: Login Form Using HEAD or OPTIONS Verb Instead of POST
body: <p>I have a very strange problem.  I just deployed an application to production.  I have two action methods for logging in:</p>
  
  <pre><code>AccountController
     [HttpGet]Login();
     [HttpPost]Login(..);
  </code></pre>
  
  <p>The form rendered to capture the login information and perform the post is a straightforward form:</p>
  
  <pre><code>&lt;form action="/Account/Login" class=" form-horizontal" method="post" novalidate="novalidate"&gt;&lt;input name="__RequestVerificationToken" type="hidden" value=".."&gt;
  .
  .
  &lt;/form&gt;
  </code></pre>
  
  <p>I also log unhandled actions on the controller, which writes the message to the event log.  This is the message I see:</p>
  
  <pre><code>Protected Overrides Sub HandleUnknownAction(actionName As String)
      EventLog.WriteEntry("Application", "Controller '" + Me.GetType().Name + "' does not have an action '" + actionName + "' for a request of type '" + Me.ControllerContext.HttpContext.Request.HttpMethod + "'.")
  End Sub
  </code></pre>
  
  <p>I see this message logged:</p>
  
  <blockquote>
    <p>Controller 'AccountController' does not have an action 'Login' for a request of type 'HEAD'.
    Controller 'AccountController' does not have an action 'Login' for a request of type 'OPTIONS'.</p>
  </blockquote>
  
  <p>Any idea why the request is coming over as HEAD or OPTIONS?  I have no idea how the user is trying to connect to the application.</p>