title: OPTIONS Request instead of PUT in XMLHTTPRequest
body: <p>I trying to do the html+javascript part of a web service in REST. With this code as example:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt; 
  &lt;html lang="en"
  &lt;script type="text/javascript"&gt;
    function testPut( url ){
    var xhr = new XMLHttpRequest();
  
    xhr.open( 'PUT', url, false );
    xhr.setRequestHeader( 'Content-Type', 'text/plain' );
    xhr.send( null );
    }
  &lt;/script&gt;
  &lt;body&gt;
  &lt;form name="test" action=""&gt;
      &lt;input type="button" value="Lanceur" onclick="testPut('http://fake.es:8080')" /&gt;
    &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>But in the web server (done with web.py) I getting OPTIONS instead of PUT:</p>
  
  <pre><code>111.111.111.111:52014 - - [15/May/2013 17:01:47] "HTTP/1.1 OPTIONS /" - 200 OK
  </code></pre>
  
  <p>How con I solve it? To remove the OPTIONS request and only send a PUT?</p>