TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    New feature for bookmark URL's - now if you use POST you'll get a json response

    Announcements
    1
    1
    626
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • RussR
      Russ
      last edited by Russ

      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

      Russell VanderMey

      1 Reply Last reply Reply Quote 0
      • First post
        Last post