Lengkap

Groovy Script Gzip GZIPDecompressingEntity

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.

Kemahiran: Java

Lihat lagi: gzipdecompressingentity, groovy gzip, script gzip, groovy substr, jmeter code, app script form, json script, jmeter, java json, gzip, groovy, php app json, php json app, json app php, script php json, base64_decode php, outbound script, base64 groovy code, working php article spinner script, base64 groovy

Tentang Majikan:
( 10 ulasan ) Las Vegas, United States

ID Projek: #5066393

Dianugerahkan kepada:

barundebnath

Hi, Very easy job for me. It will be pretty easy modify the data before gzipped. I can send you solution within 1 day. Regards Barun

$54 USD dalam 3 hari
(35 Ulasan)
5.2