Posting to /select and receiving error 1019
I'm just playing around with the SoundTouch API, trying to get a Tasker (Android app) task to make a POST request to turn on the Bluetooth source on my SoundTouch 10.
Via curl I see no issues:
~ curl -d "<ContentItem source="BLUETOOTH"></ContentItem>" -X POST http://192.168.0.2:8090/select -v Note: Unnecessary use of -X or --request, POST is already inferred. * Trying 192.168.0.2... * TCP_NODELAY set * Connected to 192.168.0.2 (192.168.0.2) port 8090 (#0) POST /select HTTP/1.1
But when I try the same POST in Tasker I see the following response:
<?xml version="1.0" encoding="UTF-8" ?><errors deviceID="68C90BD04C6C"><error value="1019" name="CLIENT_XML_ERROR" severity="Unknown">Error parsing request</error></errors>
I cannot see any typos or other issue. I also have little idea what this response means! Any insights?