title: passing username/password from sencha to restapi
body: <p>I have used sencha touch 2 as client for one of my mobiles apps, I have used django-tastypie RESTFUL api to handle client requests . Now i need to send username/password with request like below</p>
  
  <blockquote>
    <p>domainame/api/v1/entry/?format=jsonp&amp;username=admin&amp;password=admin&amp;_dc=1336968929898&amp;type=new&amp;city=ABC&amp;date=31-03-2012</p>
  </blockquote>
  
  <p>Below is my sample code,</p>
  
  <pre><code> handler: function() {
                          Ext.Ajax.request({
      url: 'http://domainaname/api/v1/entry/?format=jsonp&amp;username=admin&amp;password=admin',
      method: 'GET',
      withCredentials: true,
      useDefaultXhrHeader: false,
      params:{
          type: 'new',
          city: 'ABC',
          date: '31-03-2012',
      },
  
      callback: function(response, successful) {
          if (successful) {
              Ext.Msg.alert('Success', 'We got yours');
          } else {
              Ext.Msg.alert('Fail', 'It didnt work!');
          }
      }
  </code></pre>
  
  <p>I don't want username/password to be visible . </p>
  
  <p><strong>Type,city,date are filter option of query</strong></p>
  
  <p>Thanks!</p>