I am trying to control a device that the API outputs XML as a result of a GET. I don't care about the output, I just want to send a command with the API, but a required part of the API string tells it to output XML, so it always sends back a response. Easily ignored in curl.
So:
Code: Select all
/tool fetch mode=http url=http://192.168.1.134/state.xml?<some command string>
status: failed
failure: ERROR parsing http: error in line
Am I doing it wrong or missing arguments or does fetch just not like getting back XML?
For reference, this is what it sends back with curl:
Code: Select all
curl "http://192.168.1.134/state.xml?<some command string>"
<?xml version="1.0" encoding="utf-8" ?>
<datavalues>
...