title: HTTP Basic Auth in RESTful API with PHP
body: <p>I'm using Fat Free Framework for a small RESTful API. I want the user to authenticate for each requests with HTTP Basic Auth like this:</p>
  
  <p><a href="http://user:sha1(pass)@server.org/[...]" rel="nofollow">http://user:sha1(pass)@server.org/[...]</a></p>
  
  <p>My problem is that I can't get these credentials.
  Our client (Browser: AJAX Request with jQuery) sends them 100%, but I cant find anything in $_SERVER in PHP.</p>
  
  <p>It looks like Apache doesn't forward user + pass to PHP.</p>
  
  <p>Does anyone know why not? And how I can realize HTTP Basic Auth with PHP?</p>
  
  <p>best regards</p>