Trying to send http command that has json payload and needs the payload in the body like in the ddk example below. — Staff replied: “Getting detailed encoding correct in a text field when you need exacting control over each byte is not likely to be the best path.”
Trying to send http command that has json payload and needs the payload in the body like in the ddk example below. With the new custom device option in the app, is there a way to add a carriage return so that roomie sees it as the body option as below? The key in the app is Done when editing the line so it won't insert a CR. Should I just do this on a mac?
My goal device command (would be entered in app custom device)
<key>CONFIG 0</key>
<string>POST /devices/0/config/post.schema
{"master_status": {"preset": 0}}</string>
The example from doc:
<key>CURSOR DOWN</key>
<string>POST /upnp/control/IRCC
Soapaction: "urn:schemas-sony-com:service:IRCC:1#X_SendIRCC"
Content-Type: text/xml; charset=UTF-8
<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"
s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:X_SendIRCC xmlns:u="urn:schemas-sony-com:service:IRCC:1">
<IRCCCode>AAAAAwAAHFoAAAA6Aw==</IRCCCode>
</u:X_SendIRCC>
</s:Body>
</s:Envelope></string>