title: PUT or DELETE verb in ASP.NET MVC on HTML form
body: <p>I have a simple user registration form, with two fields, one for username and another for the password. I have a controller called <code>UserController</code> which has these two actions:</p>
  
  <pre><code>[HttpGet]
  public ActionResult Register()
  {
      return View();
  }
  
  [HttpPut]
  public ActionResult Register(string username, string password)
  {
      // Registering user
      return View();
  }
  </code></pre>
  
  <p>I used <strong>HTTP Put</strong> to make my website RESTful (PUT verb for insertion). However, when I submit my form, I get 404 error. Here is my form's HTML:</p>
  
  <pre><code>&lt;form action='@Url.Action("Register", "User")' method="post"&gt;
  &lt;div class='field'&gt;
      &lt;label for='username'&gt;
          Username:
      &lt;/label&gt;
      &lt;input type='text' id='username' name='username' maxlength='100' /&gt;
  &lt;/div&gt;
  &lt;div class='field'&gt;
      &lt;label for='password'&gt;
          Password:
      &lt;/label&gt;
      &lt;input type='password' id='password' name='password' maxlength='50' /&gt;
  &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>What do I miss here? What's wrong?</p>