Curl command that sends ReadyNAS NV+ v2 shutdown state

I’m trying to send shut down command with curl to ReadyNAS NV+ v2 with this command:

curl -s -v -u user:pass -k "https://192.168.1.11/dbbroker" -H "Content-Type: application/x-www-form-urlencoded;" -H "X-Requested-With: XMLHttpRequest" --data "<?xml version=\"1.0\" encoding=\"UTF-8\"?><xs:nml xmlns:xs="http://www.netgear.com/protocol/transaction/NMLSchema-0.9" xmlns="urn:netgear:nas:readynasd" src="dpv_1389313459000" dst="nas"><xs:transaction id="njl_id_725"><xs:custom id="njl_id_724" name="Halt" resource-id="Shutdown" resource-type="System"><Shutdown halt="true" fsck="false"/></xs:custom></xs:transaction></xs:nml>"

It works from linux shell.
Tried in configuration.yaml but obviously don’t work, because of the formatting.
Is there other way to implement this?

Have you tried the Shell Command?

Yes, it’s wrapped in shell_command: in configuration.yaml

Put your command in single quotes

'curl -s -v -u user:pass -k "https://192.168.1.11/dbbroker"....xs:transaction></xs:nml>"'

That did the trick! Thanks.