Thanks Deepak,
I am using 2.3.4 r785646.
I spent some time trying reduce this down to a minimal test case. I had to
remove the "Content encoding" value when using unnamed parameters to form
the body. Why would I need to do that?
David
--------------------------------------------------
From: "Deepak Shetty" <shet...@gmail.com>
Sent: Wednesday, October 28, 2009 4:18 PM
To: "JMeter Users List" <jmeter-user@jakarta.apache.org>
Subject: Re: How to use variables in an HTTP PUT body
works fine for me. Which version of Jmeter/Java are you using(2.3.4/1.5)?
Did you specify the server name/path in the HTTPrequest correctly?Is there
anything in the log?
alternately can you show your test case (a reduced version of it)
regards
deepak
On Wed, Oct 28, 2009 at 3:36 PM, David Levine <david.lev...@keas.com>
wrote:
I need to use a variable inside the body that I am PUTting to a server.
I
read the following at
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTTP_Request
:
"For the POST and PUT method, if there is no file to send, and the
name(s)
of the parameter(s) are omitted, then the body is created by
concatenating
all the value(s) of the parameters. This allows arbitrary bodies to be
sent."
So I set up an HTTP Request with some parameters with no names. When I
try
to run that test, the View Results Tree shows me the following for the
Request:
PUT
Request Headers:
It fails, as it seems there's no URI for the PUT (nor any headers). It
seems like something went badly wrong somewhere.
I don't have any parameters with a name defined in either the HTTP
Request
sampler, and I don't have an HTTP Defaults.
If I take out the unnamed parameters and replace them with a file,
everything works fine.
What am I doing wrong?
David
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org