title: Sending Authorization header on blackberry using ajax
body: <p>I have been trying to set Authorization header for my ajax call. It works great in all browsers except on Blackberry 4.6</p>
  
  <p>Has anyone managed to make this work? Its particaly frustrating as the <a href="http://docs.blackberry.com/en/developers/deliverables/11849/XMLHttpRequest_573779_11.jsp#XMLHttpRequest_setRequestHeader_620056_11" rel="nofollow">doc</a> mentions several headers that are not allowed, but not this one!</p>
  
  <p>I am trying to do this with a website, not webworks.</p>
  
  <p>The code is along these lines</p>
  
  <pre><code>$.ajax({
       url: path,
       headers: {
           Authorization: 'Basic ' + btoa(username + ':' + password)
       },
       ...
  });
  </code></pre>