Hi list! Encountered a problem with JMeter (v2.3.4) that I cannot find a workaround for. Hoping someone has a suggestion I've overlooked.
I have a complicated HTTP POST request (70+ parameters, with a number of variable substitutions). I've coded it up but encountered a problem with eleven parameters that were just GUID name/value pairings. Some work with a regular expression extractor, a Beanshell sampler, and a ForEach controller has constructed these into a single JMeter variable with the usual "name=value&name=value&name=value&" (etc) structure. My problem is, JMeter is insisting in URL encoding the JMeter variable contents when I put it in the "send parameters with the request" section, regardless of how I tick or untick the "encode?" column. I found this old post by sebb: On Mon, Oct 8, 2007 at 7:40 PM, sebb <[email protected]> wrote: > OK, in that case I think there is a work-round. > > If you use parameters with values but *no names*, then HttpClient (and > Java http) will include the values in the POST body as is with no > encoding or equals signs. > > (This does not appear to be documented anywhere ... oops!) > But this only seems to work when I only have one single line in the request parameters config. As soon as I mix the workaround with normally encoded parameters, JMeter stops working. See my screenshot -- where I set two parameters; the first a JMeter variable containing the string "name=value&spam=eggs" and the other a normal parameter with name "ham" and value "green". When I hit send, the POST parameters look like: POST data: ham=green ...with no mention of the other two parameters. So... is there a workaround for this? Or do I need to manually URL encode my 60-odd parameters and put them all in a single Value box of my HTTPClient?
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

