I have a jMeter app setup that POSTS a a form field that is GZIPPED.
Yes the outbound data of the form field is GZIPPED.
The Gzipped field contains a token I need to set (JSON) and the re-gzip.
Here is the working PHP code to deflate the field. So you can see it is base64 encoded after it is gzipped. Also you can see the final base64 encoded gzip data has all + replaced with " ";
$json = gzinflate( substr(base64_decode(str_replace(' ','+',$json)),10,-8) );
I need the script to take the compressed json and decompress it. Then set the Token field inside the JSON to a new value (jMeter variable). Then the entire JSON must be gzipped then base64 encoded. The + replaced with " " is not required.