Execute but not open URL

I have been trying all day to find a solution for my problem.
I have a web-interface, which i’d like to control through home assistant.
The only option I have been able to get to work is through an URL, which perfectly executes an action of my web interface. But it also opens my browser each time I do it, which is very annoying.
I use the actions below.’

‘name: Gordijn links (dicht)
type: button
tap_action:
action: url
url_path: http://192.168.2.7/api?action=move_total_left&api=27031969

My second approach doesnt work as it tells me that the service is not found…
‘name: Gordijn links dicht
type: button
tap_action:
action: call-service
service: shell_command.linksdicht
shell_command:
linksdicht: curl http://192.168.2.7/api?action=move_total_left&api=27031969

What can I do?

You can use a command line cover for that: Command Line Cover - Home Assistant
And use the curl request (capital X) like this:

/usr/bin/curl -X GET http://192.168.2.7/api?action=move_total_left&api=27031969

and i presume:

/usr/bin/curl -X GET http://192.168.2.7/api?action=move_total_right&api=27031969

For opening and closing. I suggest testing the curl call from the command line to test if it reacts first.

ps. for getting your code in a code box use tripple accent grave before and after the code.