LupusE
2
You’re about to mix up two communications.
- connect per
ssh and execute local commands.
- connect per
curl and use the well documented API
It is not useful to login remote to send a http request.
In the API documentation is the very first part ‘Authentication’ (okay, the second, after ‘Prepare the Environment’).
Maybe the API differs from your device. It is useful to know against what device/firmware you are executing the curl-request.