New feature for bookmark URL's - now if you use POST you'll get a json response
-
If you run this command, you'll run calculator on my Windows box:
curl -X POST -k https://www.triggercmd.com/trigger/bookmark?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJib29rbWFya3VzZXJfaWQiOiI1OGJiM2E3N2YyZjgzMTUzMjI0NzM1YjYiLCJjb21wdXRlcl9pZCI6IjViNGI5OGE1YTBlMTNhMDAxYmVlZWQ5MiIsImNvbW1hbmRfaWQiOiI1YjRiOThhNmEwZTEzYTAwMWJlZWVkOTMiLCJleHBpcmVzSW5TZWNvbmRzIjoiIiwiaWF0IjoxNTM1ODE4MjQ3fQ.Avl0G0ybAyEUOy9jS86XYWD-i_hlcsw5xK7xp0QIJN8
You'll get a json response like this:
{"computername":"DevWindows","commandname":"Calculator","message":"Trigger sent. Returning json response.","expireson":null,"expires":""}
This uses the normal Bookmark feature but uses a POST instead of the normal GET that a browser would use if you simply clicked the https://www.triggercmd.com/trigger/bookmark?token=eyJhb... link.
You can use this feature to put a button on a web page that runs your command like this:
https://www.w3schools.com/code/tryit.asp?filename=FUUM39NOG124