CakePhp 3 Xml and Basic Auth

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

CakePhp 3 Xml and Basic Auth

kalbarsky
Hi guys,

I have a weird problem when trying to acces an XML file with Basic Authentication enable.

When i try to acces the url to retrieve JSON, all work as intended: browser ask username & password.
Successfull auth give me the json, auth failed = json with status 401.

Same Url but in XML format: the browser never ask forĀ credential, the reponse start with:
Warning (4096): Object of class Cake\Network\Request could not be converted to string [CORE\src\Utility\Xml.php, line 338]

If I request the json with right credential, then ask the XML, I get the xml file.

Maybe I made a mistake, but I can't find where !

Thanks

ps: Cakephp 3.1.4.
ps 2: sorry for my english

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.