title: Strange JQuery Error "code 501, message Unsupported method OPTIONS"
body: <p>I am learning the JQuery Get method. I start up a Python HTTP server:</p>
  
  <p>(just typing command "<strong>Python -m SimpleHTTPServer</strong>"). </p>
  
  <p>It's fine to test this webserver by just visiting "http://localhost:80" on my web browser. However, when I write this very simple javascript to visit my webserver. I get an error message:</p>
  
  <p><strong>"code 501, message Unsupported method ('OPTIONS')"</strong></p>
  
  <p>I use jquery.xdomainajax.js library which suppose cross domain request JQuery. </p>
  
  <p>Here is my javascript code:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script src="jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="jquery.xdomainajax.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  $(document).ready(function(){ 
    u = 'http://localhost:80';
   jQuery.get(u, function(res){       
      $("#data").html(res.responseText)
  });
  });
  
  
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;p id="data"&gt;&lt;/p&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Actually, if I change u to any other url, such as "http://www.google.ca". It works quite well. But I have no idea why it does not work for the basic Python HTTP server. Can anyone help me?</p>