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