Can't Make HTTP API sendCommand Work

I am trying to use the HTTP API to turn on relays for 30 seconds on an 8 relay WIFI Board.
I have tested http://192.168.1.XXX/relayON?relay=1 and http://192.168.1.XXX/relayOFF?relay=1 and they work fine but when I try http://192.168.1.XXX/sendCommand?data:[254,108,1] it doesn’t work.
I get a System.Net.Http.HttpRequestException: ‘An error occurred while sending the request.’
WebException: The underlying connection was closed: The connection was closed unexpectedly.

SOLVED. The documentation is wrong, The sendCommand should have data= instead of data:. exa: http://192.168.1.XXX/sendCommand?data=[254,108,1]