title: REST api authentication through json
body: <p>I'm trying to do a simple REST api in a CakePhp app, using a <a href="https://github.com/kvz/cakephp-rest-plugin" rel="nofollow">REST plugin</a> I found,  which for Authorization uses http headers.</p>
  
  <p>My question is, how can I supply through jQuery using json, a header like for example:</p>
  
  <p><code>Authorization: TRUEREST username=wwwww&amp;password=zzzzz&amp;apikey=xxxxxyyyyyyy</code></p>