KB Article #176541

http.client.getCgiArgument('example') only works on values in the query string, not the message body

Problem


* ${http.client.getCgiArgument('variable')} only works when 'variable' is part of the URL (example.com/test?variable=value) and not when 'variable' is POSTed to the body of the HTTP message.

Resolution

-- Use Extract REST Request Attributes, then a selector expression like ${http.querystring.variable} to extract the value.  This will work for parameters in either the body or the URL.  Please refer to the User's Guide section on Extract REST Request Attributes for more information.