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_hlcsw5xK7xp0QIJN8You'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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login