Open JamoCA opened 4 years ago
Many WAFs are configured to block access if the username is empty or if it contains "CURL".
Please add support for specifying a custom user-agent as well as a default user agent.
I've added a default value to the public init function:
init
variables.useragent = "cf-curl";
and then added this logic to to the private _commandArg function.
_commandArg
if(len(trim(variables.useragent))){ c.add('-A "#variables.useragent#"'); }
Many WAFs are configured to block access if the username is empty or if it contains "CURL".
Please add support for specifying a custom user-agent as well as a default user agent.
I've added a default value to the public
init
function:and then added this logic to to the private
_commandArg
function.