my dog learned polymorphism*
The moose likes Performance and the fly likes Jmeter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "Jmeter" Watch "Jmeter" New topic
Author

Jmeter

Nandhini keshav
Greenhorn

Joined: Mar 05, 2013
Posts: 4
Response Data is being encrypted in Jmeter while playing back. How to read this response in text?
have recorded an application in Jmeter.
That is just signing in, getting the response page after sign in and then sign off. The response page of the server is in encrypted format when viewed from Tree view in text format. Because of this encryption i am not able to read the values for the next request?

I tried downloading tika-app-XX jar, but it was of no help.
Any help would be appreciated.


Thanks in advance.
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

Welcome to code ranch. Can you elaborate what you mean by 'The response page of the server is in encrypted format'. Is the page protected by HTTPS or is the response encrypted using a custom algorithm and key ?


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Nandhini keshav
Greenhorn

Joined: Mar 05, 2013
Posts: 4
Yes the page is protected by HTTPS, the jmeter request has Accept-Encoding: gzip, deflate.
The response page has many javascript tags, few content within the tags is in the readable format.
But the content inside one javascript tag is not readable, which contains the page rendered with some information.
This content of this tag is being encoded(encrypted), since its not in the readable format, i am not able to proceed further.


Please do suggest on this.



Thanks in advance.
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

How about using TCPMON as a proxy and allowing it to sniff HTTPS traffic ? Jmeter can contact TCPMON over HTTP and TCPMON initiates the HTTPS connection with the target site. That way Jmeter can sniff the traffic and communicate with HTTPS at the same time.
Nandhini keshav
Greenhorn

Joined: Mar 05, 2013
Posts: 4
I tried the way you told as well, but it was in vain, more over its just a web application,
In the response data i just have the following...

<script language="javascript">
<!--

// -->
<!--
//3g\>R?9! .................................
.............................
...............................
yO4{O/Hv R
// -->
</script>


Some content inside that tag which i am not able to identify, somehow i goto get that in the readable text format.
Any help on this would be appreciated.



Thanks in advance.
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

If the response were in HTTPS, none of the text would be readable. It appears your response is un-encrypted but some of the data is garbled. To isolate the problem try reaching the server through its http connector instead of the https connector. That will verify if the problem is due to https. Then you can zero in on what causes the script to be garbled.
Nandhini keshav
Greenhorn

Joined: Mar 05, 2013
Posts: 4
Hi,
Actually the url is a HTTP call only, once it logs inside, the webpage becomes secure.
As you told i tried reaching the server with HTTP connector as well, even then the Jmeter is displaying in this garbled format.




Thanks,
nandhini
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Jmeter