Hi All,
According to the API Reference, I test the following API, but it occurs error( Invalid connection request URL or protocol).
:~/$ curl -i ‘http://localhost:7557/devices/FFFFFF-easycwmp-FFFFFF123456/tasks?connection_request’ -X POST --data ‘{“name”: “refreshObject”, “objectName”: “”}’
HTTP/1.1 202 Invalid connection request URL or protocol
GenieACS-Version: 1.1.3
Content-Type: application/json
Date: Wed, 28 Aug 2019 08:40:12 GMT
Connection: keep-alive
Transfer-Encoding: chunked
{“name”:“refreshObject”,“objectName”:"",“device”:“FFFFFF-easycwmp-FFFFFF123456”,“timestamp”:“2019-08-28T08:40:12.691Z”,"_id":“5d663dec0da5dc2c55c717a1”}
but if I remove the connection_request option
:/$ curl -i ‘http://localhost:7557/devices/FFFFFF-easycwmp-FFFFFF123456/tasks’ -X POST --data ‘{“name”: “refreshObject”, “objectName”: “”}’
HTTP/1.1 202 Accepted
GenieACS-Version: 1.1.3
Content-Type: application/json
Date: Wed, 28 Aug 2019 08:47:19 GMT
Connection: keep-alive
Transfer-Encoding: chunked
{“name”:“refreshObject”,“objectName”:"",“device”:“FFFFFF-easycwmp-FFFFFF123456”,“timestamp”:“2019-08-28T08:47:19.685Z”,"_id":“5d663f9738f3b32c564f5658”}
any advice?