HTTP2 Plugin

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

HTTP2 Plugin

Kishore PS
Hi Team,

Did any one got a chance to simulate http2 requests using jmeter?

Http2 sampler plugin gives the response as compressed format. We can’t do
assertion or correlation on that. How do we handle it? (Removing the
accept-encoding header won’t give the actual response time)

thanks
Kishore
Reply | Threaded
Open this post in threaded view
|

Re: HTTP2 Plugin

glinius@live.com
If you ticked "Synchronized Request" you can decrypt the response (I assume
it is  gzip-compressed
<https://developer.mozilla.org/en-US/docs/Glossary/GZip_compression>  ) by
adding ad  JSR223 PostProcessor
<https://www.blazemeter.com/blog/groovy-new-black/>   and using the
following code:


> prev.setResponseData(new java.util.zip.GZIPInputStream(new
> ByteArrayInputStream(prev.getResponseData())).bytes)

If you need to do this for async requests it won't be that easy as duplex
asynchronous nature of HTTP2 is not inline with JMeter threads model, you
can reach out to JMeter Plugins developers and maintainers at  JMeter
Plugins Support Forum
<https://groups.google.com/forum/#!forum/jmeter-plugins>  



--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]