You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by sebb <se...@gmail.com> on 2006/09/12 17:30:04 UTC
Re: Encoding of cookies in JMeter 2.2 using HTTPClient
I've had a look at the code, and as far as I can see, the cookie
string is generated using the same method for both samplers. Indeed
when I tested, the same text is displayed in the View Results Tree
Request panel.
However, when tested against a JSP in Tomcat that displays the
cookies, there was indeed a difference, so it looks like the cookies
are being processed in some way by HTTPClient.
Try setting the encoding property for the HTTPClient headers:
http.protocol.element-charset
See:
http://jakarta.apache.org/commons/httpclient/preference-api.html
On 03/08/06, Milla Makelainen <Mi...@alea.ca> wrote:
> Hi all,
>
> I've just been changing a script to use "HTTP Request HTTPClient" instead of "HTTP Request" to get the use of the httpclient.localaddress property I was asking about earlier on this week.
>
> I've come across a problem - it looks like HTTPClient is possibly encoding the cookies in a different way and therefore the script is failing. When I run the old script that uses HTTP Request the cookie looks sometime like this:
>
> FNameÿLNameÿtest@alea.caÿ
>
> When I run the new version that user otherwise identically configured HTTPClient those "ÿ" characters are replaced with those little square symbols that usually mean it doesn't know how display a character, and I get an error from the server because it can't read the cookie. Both tests are run with using JMeter 2.2.
>
> Anyone else noticed anything similar?
>
> Thanks,
> Milla
>
> Notice - The information in this e-mail is confidential and may be legally privileged. It is intended solely for the recipient(s) named above. If you have received this message in error, or are not a named recipient, please notify the sender immediately at + 1 (604) 685-7619 and please delete this e-mail message from your computer. Thank you.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org