title: Rest-ful Basic Authentication with ASP.NET MVC
body: <p>Anyone know how this works, I'm using the <code>.net membership provider</code> and just want to pull an <code>xml</code> list.  I'm also using the <code>.net mvc sdk</code>. </p>
  
  <p>So here's the problem when I add the <code>[WebApiEnabled]</code> at the top of my controller I can successfully pull <code>xml/json</code>.  </p>
  
  <p>But when I add <code>[Authenticate]</code> to the top of my controller I cannot login. </p>
  
  <p>As an example:</p>
  
  <pre><code> curl -i -u "admin:pass" -H "Accept: application/xml" http://localhost:xxxx/Book
  </code></pre>
  
  <p>Thanks in advance for your help</p>