You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Piyush <me...@gmail.com> on 2011/02/15 13:59:59 UTC
How to send '&' (ampersand) in a string as parameter in Jmeter
Hello All,
I am sending a string as parameter in HTTP request.
String is: "First & Last"
But Jmeter converted it to: "first+%26+last" in request url.
I also tried using '\&' butthat also didn't work.
Can you please tell me how should I write down '&' (ampersand) in the request.
Thanks !
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: How to send '&' (ampersand) in a string as parameter in Jmeter
Posted by Deepak Shetty <sh...@gmail.com>.
what are you trying to do? & is a special character and MUST be encoded for
GET and POST requests. %26 will be read as & by any standard webserver.
regards
deepak
On Tue, Feb 15, 2011 at 4:59 AM, Piyush <me...@gmail.com> wrote:
> Hello All,
>
> I am sending a string as parameter in HTTP request.
>
> String is: "First & Last"
> But Jmeter converted it to: "first+%26+last" in request url.
>
> I also tried using '\&' butthat also didn't work.
>
> Can you please tell me how should I write down '&' (ampersand) in the
> request.
>
> Thanks !
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
Re: How to send '&' (ampersand) in a string as parameter in Jmeter
Posted by chaitanya bhatt <bh...@gmail.com>.
I think you should uncheck "ENCODE" option in the http sampler when you have
special characters in the input value.
-Chaitanya M Bhatt
On Tue, Feb 15, 2011 at 6:29 PM, Piyush <me...@gmail.com> wrote:
> Hello All,
>
> I am sending a string as parameter in HTTP request.
>
> String is: "First & Last"
> But Jmeter converted it to: "first+%26+last" in request url.
>
> I also tried using '\&' butthat also didn't work.
>
> Can you please tell me how should I write down '&' (ampersand) in the
> request.
>
> Thanks !
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>