jmeter icon indicating copy to clipboard operation
jmeter copied to clipboard

zstd is not supported by JMeter

Open sebiboga opened this issue 11 months ago • 0 comments

Expected behavior

The JSON response should be a valid JSON the expected response should look like this (as it does when we don't use zstd --, using Accept-Encoding: gzip, deflate, br):

Image

Actual behavior

This is how the JSON is presented in JMeter View Results Tree

Image

Steps to reproduce the problem

I used both: JMeter Recorder and BlazeMeter Auto Correlation recorder to record one of the website who is delivered through CloudFlare CDN and during the recording I saw that response is not properly decoded and shown. Script contains in request headers: Accept-Encoding: gzip, deflate, br, zstd

In the browser (Chrome) we can also see the call having zstd as accept-encoding

Image

for testing you can use this cURL command: curl "https://api.peviitor.ro/v3/total/"
-H "Accept: /"
-H "Accept-Language: en-US,en;q=0.9,ro-RO;q=0.8,ro;q=0.7"
-H "Origin: https://peviitor.ro"
-H "Priority: u=1, i"
-H "Referer: https://peviitor.ro/"
-H "Sec-CH-UA: "Not A(Brand";v="8", "Chromium";v="132", "Google Chrome";v="132""
-H "Sec-CH-UA-Mobile: ?0"
-H "Sec-CH-UA-Platform: "Windows""
-H "Sec-Fetch-Dest: empty"
-H "Sec-Fetch-Mode: cors"
-H "Sec-Fetch-Site: same-site"
-H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36"

Run the script Check in View Results Tree what the endpoint is returning

JMeter Version

5.6.3

Java Version

openjdk version "17.0.14" 2025-01-21 LTS

OS Version

Windows 11 Enterprise 23H2

sebiboga avatar Feb 05 '25 14:02 sebiboga