Control command-line switch with HTTP?

I have what is probably a really simple problem - I have a RPi with 433MHz tx and some remote 13A sockets, I would like to know if I can use HTTP to control these? Currently they work fine using command line switch and the HA GUI but I would like to send HTTP from smartthings to control them from there.

I am not a web dev so be gentle :slight_smile:

OK so I finally figured it out, sort of. To use curl to turn on a switch:

curl -v -X POST -H “x-ha-access: passwordgoeshere”
-H “Content-Type: application/json”
-d ‘{“entity_id”: “switch.rfoutlet1_1”}’
http://A.B.C.D:8123/api/services/switch/turn_on

But now the hard bit, using smarthtings to POST…