Joking...
You can package the request with your needed headers and call it from js as you do from php,
Code:
Ext.create('Ext.data.Store', {
model: 'Entry',
proxy: {
type: 'ajax',
headers:{
"Authorisation": ur_custom_base64_encode(user+':'+passw),
"UserAgent":'Foobar'
},
url : 'zaXMLprovideer/url/',
reader: {
type: 'xml',
rootPorperty: 'feed entry'
}
},
});
or you can call a php script file that will do the request to "xml datasets" as you do now, and just return the xml response without json_encode-ing.
zaScript.php
PHP Code:
$user='';
$pass='';
...
$xml= new SimpleXmlElement(....);
echo $xml->asXML();
unset($things);
exit();
Code:
Ext.create('Ext.data.Store', {
model: 'Entry',
proxy: {
type: 'ajax',
url : 'zaScript.php',
reader: {
type: 'json',
rootPorperty: 'feed entry'
}
},
});