Dear folks,
I would like to ask for the correct syntax when firing a curl command via an “execute rule”; even escaping quotation marks seems not to work …
while this is working flawlessly in command line:
pi@pimatic:~ $ curl -s -i -H "Accept: text/xml" -H "Cache-Control: no-cache" -H "Pragma: no-cache" -H "SOAPACTION: \"urn:panasonic-com:service:p00NetworkControl:1#X_SendKey\"" -H "Content-Length: 200" -H "Content-Type: text/xml;charset=\"utf-8\"" -X POST --data "<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body> <u:X_SendKey xmlns:u=\"urn:panasonic-com:service:p00NetworkControl:1\"> <X_KeyEvent>NRC_POWER-ONOFF</X_KeyEvent></u:X_SendKey> </s:Body> </s:Envelope>" http://192.168.1.14:55000/nrc/control_0/?
HTTP/1.1 200 OK
CONTENT-LENGTH: 301
Content-Type: text/xml; charset="utf-8"
EXT:
SERVER: Panasonic-VIErA/1, UPnP/1.0, Panasonic MIL DLNA SERVER
CONNECTION: close
how to use this command for a pimatic rule, please?
Thanks and regards,
Paule