Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 703 Bytes

proc_passing-arguments-to-shellhook-script-using-curl.adoc

File metadata and controls

22 lines (19 loc) · 703 Bytes

Passing Arguments to Shellhook Script Using Curl

Use this procedure to pass arguments to a shellhook script using curl.

Procedure
  • When executing a shellhook script using curl, create HTTP headers in the following format:

    "X-Shellhook-Arg-1: VALUE"
    "X-Shellhook-Arg-2: VALUE"
Example
# curl -sX POST -H 'Content-Type: text/plain' \
-H "X-Shellhook-Arg-1: Version 1.0" \
-H "X-Shellhook-Arg-2: My Content View" \
--data "" https://{smartproxy-example-com}:{smartproxy_port}/shellhook/My_Script