You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Eldho John <el...@aztecsoft.com> on 2008/03/27 11:19:21 UTC

Jmeter is not able to decode the response data

I tried to record and play back an AJAX application. Jmeter (2.3.1)
records all the http requests sent to the server.

But while playing back the script, jmeter is not able to decode the
response data. Also I noticed from the browser

derived header that the content-type is
'application/x-www-form-urlencoded;Charset=utf-8'. I guess that jmeter

has problem only when the content-type is as mentioned above.

Does any body have any thought on this?



Thanks,

Eldho John





This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If you have received it in error, please contact the sender by return email, notify your system manager and destroy the original message and any copies thereof. Any review, use, disclosure or distribution is unlawful. Please check this email and any attachments for the presence of viruses. The Company accepts no  liability for any damage caused by any virus transmitted by this email. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company.
The Company reserves the right to monitor, review and store the content of all messages sent to or from this e-mail address.

www.aztecsoft.com

Re: Jmeter is not able to decode the response data

Posted by sebb <se...@gmail.com>.
Thanks for the zip and details sent privately.

I've tried the JMX, and it does show that some of the HTTP Responses
are encoded.

I used the Save Responses to File Post-Processor, and some of the
resulting .html files are normal, and some are encoded. The normal
ones display OK in a browser, but the encoded ones don't.

So I assume that these HTML pages are being processed somehow by
Javascript before being rendered by the browser.

If the encoding is a standard encoding used in such cases, then it
might be worth enhancing JMeter to add a decoder - feel free to create
a Bugzilla enhancement request. Details of the encoding scheme would
be required.

However, it may be that the encoding is specific to the site. In which
case, it may be possible to write a Post-Processor (e.g. in BeanShell)
to decode the response data.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Jmeter is not able to decode the response data

Posted by sebb <se...@gmail.com>.
On 27/03/2008, Eldho John <el...@aztecsoft.com> wrote:
>
>  Sebb,
>
>  Thanks for the quick reply. But I am not sure whether that bug is
>  similar to that of my case.
>  I am able to see some encoded values in the response data.
>  Since it is in encoded format I am not able to capture the dynamic
>  values.

What do you mean by that? JMeter captures the repsonse as seen by a browser.

>  I tried decoding it using Paros and got the desired response in the text
>  format.

What is Paros?

>  Also the sampler result is as follows:
>
>  Response headers:
>  Response headers:
>  HTTP/1.1 200 OK
>  Date: Thu, 27 Mar 2008 12:26:38 GMT
>  Server: Microsoft-IIS/6.0
>  X-Powered-By: ASP.NET
>  X-AspNet-Version: 2.0.50727
>  Pragma: no-store,no-cache
>  ETag: "6569103633421923989321523"
>  Expires: -1
>  Cache-Control: no-cache, no-store,must-revalidate, max-age=-1
>  Content-Type: text/html; charset=utf-8
>  Content-length: 29228
>  Connection: Keep-Alive
>  Set-Cookie: ASP.NET_SessionId=4bokgy55j1sfr4yir3ksaq55; path=/; HttpOnly
>

Not sure what you are asking here.

>  Thanks,
>  Eldho John
>
>
>
>  -----Original Message-----
>  From: sebb [mailto:sebbaz@gmail.com]
>  Sent: Thursday, March 27, 2008 4:50 PM
>  To: JMeter Users List
>  Subject: Re: Jmeter is not able to decode the response data
>
>  Known bug, please see:
>
>  https://issues.apache.org/bugzilla/show_bug.cgi?id=44011
>
>
>  On 27/03/2008, Eldho John <el...@aztecsoft.com> wrote:
>  >
>  >  I tried to record and play back an AJAX application. Jmeter (2.3.1)
>  >  records all the http requests sent to the server.
>  >
>  >  But while playing back the script, jmeter is not able to decode the
>  >  response data. Also I noticed from the browser
>  >
>  >  derived header that the content-type is
>  >  'application/x-www-form-urlencoded;Charset=utf-8'. I guess that
>  jmeter
>  >
>  >  has problem only when the content-type is as mentioned above.
>  >
>  >  Does any body have any thought on this?
>  >
>  >
>  >
>  >  Thanks,
>  >
>  >  Eldho John
>  >
>  >
>  >
>  >
>  >
>  >  This email message and its attachments may contain CONFIDENTIAL AND
>  PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If
>  you have received it in error, please contact the sender by return
>  email, notify your system manager and destroy the original message and
>  any copies thereof. Any review, use, disclosure or distribution is
>  unlawful. Please check this email and any attachments for the presence
>  of viruses. The Company accepts no  liability for any damage caused by
>  any virus transmitted by this email. The views or opinions presented in
>  this e-mail are solely those of the author and do not necessarily
>  represent those of the company.
>  >  The Company reserves the right to monitor, review and store the
>  content of all messages sent to or from this e-mail address.
>  >
>  >  www.aztecsoft.com
>
>
> ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
>  This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If you have received it in error, please contact the sender by return email, notify your system manager and destroy the original message and any copies thereof. Any review, use, disclosure or distribution is unlawful. Please check this email and any attachments for the presence of viruses. The Company accepts no  liability for any damage caused by any virus transmitted by this email. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company.
>  The Company reserves the right to monitor, review and store the content of all messages sent to or from this e-mail address.
>
>  www.aztecsoft.com
>
>
> ---------------------------------------------------------------------
>  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


RE: Jmeter is not able to decode the response data

Posted by Eldho John <el...@aztecsoft.com>.
Sebb,

Thanks for the quick reply. But I am not sure whether that bug is
similar to that of my case.
I am able to see some encoded values in the response data.
Since it is in encoded format I am not able to capture the dynamic
values.
I tried decoding it using Paros and got the desired response in the text
format.

Also the sampler result is as follows:

Response headers:
Response headers:
HTTP/1.1 200 OK
Date: Thu, 27 Mar 2008 12:26:38 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Pragma: no-store,no-cache
ETag: "6569103633421923989321523"
Expires: -1
Cache-Control: no-cache, no-store,must-revalidate, max-age=-1
Content-Type: text/html; charset=utf-8
Content-length: 29228
Connection: Keep-Alive
Set-Cookie: ASP.NET_SessionId=4bokgy55j1sfr4yir3ksaq55; path=/; HttpOnly

Thanks,
Eldho John


-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com]
Sent: Thursday, March 27, 2008 4:50 PM
To: JMeter Users List
Subject: Re: Jmeter is not able to decode the response data

Known bug, please see:

https://issues.apache.org/bugzilla/show_bug.cgi?id=44011


On 27/03/2008, Eldho John <el...@aztecsoft.com> wrote:
>
>  I tried to record and play back an AJAX application. Jmeter (2.3.1)
>  records all the http requests sent to the server.
>
>  But while playing back the script, jmeter is not able to decode the
>  response data. Also I noticed from the browser
>
>  derived header that the content-type is
>  'application/x-www-form-urlencoded;Charset=utf-8'. I guess that
jmeter
>
>  has problem only when the content-type is as mentioned above.
>
>  Does any body have any thought on this?
>
>
>
>  Thanks,
>
>  Eldho John
>
>
>
>
>
>  This email message and its attachments may contain CONFIDENTIAL AND
PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If
you have received it in error, please contact the sender by return
email, notify your system manager and destroy the original message and
any copies thereof. Any review, use, disclosure or distribution is
unlawful. Please check this email and any attachments for the presence
of viruses. The Company accepts no  liability for any damage caused by
any virus transmitted by this email. The views or opinions presented in
this e-mail are solely those of the author and do not necessarily
represent those of the company.
>  The Company reserves the right to monitor, review and store the
content of all messages sent to or from this e-mail address.
>
>  www.aztecsoft.com

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If you have received it in error, please contact the sender by return email, notify your system manager and destroy the original message and any copies thereof. Any review, use, disclosure or distribution is unlawful. Please check this email and any attachments for the presence of viruses. The Company accepts no  liability for any damage caused by any virus transmitted by this email. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company.
The Company reserves the right to monitor, review and store the content of all messages sent to or from this e-mail address.

www.aztecsoft.com

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Jmeter is not able to decode the response data

Posted by sebb <se...@gmail.com>.
Known bug, please see:

https://issues.apache.org/bugzilla/show_bug.cgi?id=44011


On 27/03/2008, Eldho John <el...@aztecsoft.com> wrote:
>
>  I tried to record and play back an AJAX application. Jmeter (2.3.1)
>  records all the http requests sent to the server.
>
>  But while playing back the script, jmeter is not able to decode the
>  response data. Also I noticed from the browser
>
>  derived header that the content-type is
>  'application/x-www-form-urlencoded;Charset=utf-8'. I guess that jmeter
>
>  has problem only when the content-type is as mentioned above.
>
>  Does any body have any thought on this?
>
>
>
>  Thanks,
>
>  Eldho John
>
>
>
>
>
>  This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If you have received it in error, please contact the sender by return email, notify your system manager and destroy the original message and any copies thereof. Any review, use, disclosure or distribution is unlawful. Please check this email and any attachments for the presence of viruses. The Company accepts no  liability for any damage caused by any virus transmitted by this email. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company.
>  The Company reserves the right to monitor, review and store the content of all messages sent to or from this e-mail address.
>
>  www.aztecsoft.com

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org