LOGIN  |  REGISTER
Smart Living Made Brilliant!
CASTLEOS FORUM

HomeCastleOS API

Information, FAQs, Q&As, and everything else related to the CastleOS API can be found here

Web: Errors return XML not JSON Messages in this topic - RSS

Phil Hawthorne
Phil Hawthorne
Posts: 400


3/13/2016
Phil Hawthorne
Phil Hawthorne
Posts: 400
Just trying to get my PHP wrapper to get a token from /CastleOS/service/web/AuthenticateUser_PlainText

The headers from the server state that the response body is JSON, however the actual response is XML, with a note saying


Method not allowed. Please see the service help page for constructing valid requests to the service.


The service help page, also has the same problem. Headers specify JSON, but HTML is returned.

The help page should be in HTML, but any errors given back to the caller should be in JSON, so they can be handled programmatically.
0 link