Does JMeter 3.2 support HTTP2 ?
From HTTPClient 4.5 official docs:
Standards based, pure Java, implementation of HTTP versions 1.0 and 1.1
SO, you need to wait till HTTP/2 is implemented in HTTPClient libraries and Jmeter implements HTTP2 using the library and create a sampler for the same.
To sample HTTP/2 requests, you can use a plugin for jmeter, such as this one: https://github.com/syucream/jmeter-http2-plugin
From the readme file:
- Build Netty 5 (Alpha3+) and netty-tcnative for your platform
Copy HTTP2Sampler.jar, netty-all.jar, netty-tcnative.jar and hpack.jar to lib/ext of jmeter directory
If you use gzip encoding, you must prepare jzlib.jar too.
Run JMeter
Write your test scenario with HTTP2Sampler
HTTP2 is not supported by Core JMeter as of version 4.0
But there is a plugin that implements it.
This plugin can be installed by JMeter-Plugins Manager.
Regarding HTTP Client, since version 5.0 released on 18 January 2018, Http/2 is supported:
来源:https://stackoverflow.com/questions/42854214/does-apache-jmeter-support-http-2-requests