Showing results for 
Show  only  | Search instead for 
Did you mean: 

This product reached the end of support date on March 31, 2021.

Generic execution plugin - add weird character to cmd


I'm trying to use the generic execution plugin to launch some curl command but it seems it's adding some weird character encoding in my command.

This is the command I'm trying to execute (only rawdata, no variable):

curl -g -k https://stg.esg/SILVA_00008_EmEve... --data-urlencode "source=Dynatrace-NE" --data-urlencode "message_key=NoVariable" --data-urlencode "description=NoVariable" --data-urlencode "node=whatever" --data-urlencode "severity=1" --data-urlencode "state=1" --data-urlencode "u_proposed_assignment_group=APM_NE" --data-urlencode "u_short_description=Dynatrace+TEST+Alert"

When I execute the command manually on my system, my remote system receive the following paramters:


when executed via the plugin:


Any idea of what is going wrong here?


Dynatrace Guru
Dynatrace Guru

It seems the values are getting URL encoded. %22 is the encoding for ". So - I wonder how you call the Generic Execution Plugin and how you pass these values. Seems that some special characters like " (quote) gets URL Encoded

Hi Andreas, I though about something like that but I never figured how to have it properly working.

I did surrender on this and I limited the use of this plugin to simply call a shell script and then that's this shell script which properly format my curl call.