AnsweredAssumed Answered

How to curl PUT websocket connection into the api-gateway?

Question asked by Wildcatz on Aug 24, 2018
Latest reply on Aug 31, 2018 by Wildcatz

I run the following command to download my websocket connection configuration from my gateway,

 

curl -H "Content-Type: application/xml" -X GET -u admin:'myPassWord' https://127.0.0.1:8443/restman/1.0/genericEntities/myWebSocketGenericEntityID -o myWebsocketConnection.xml

 

But the following command to import gave "Policy Falsified" error,

 

curl -H "Content-Type: application/xml" -X PUT --binary-data @myWebsocketConnection.xml -u admin:'myPassWord' https://127.0.0.1:8443/restman/1.0/genericEntities/myWebSocketGenericEntityID

 

How do I need to change my myWebsocketConnection.xml so I can curl PUT or POST it in my gateway?

Outcomes