jmeter icon indicating copy to clipboard operation
jmeter copied to clipboard

how to send bytes by http request

Open wangchy0927 opened this issue 2 years ago • 0 comments

Expected behavior

No response

Actual behavior

No response

Steps to reproduce the problem

Because http body is sensitive, json need to be encrypted byte[]

String value="{ \"k1\": 1,"  \"k2\": 2\"}";
byte[] bytes = value.getBytes();
vars.putObject("body",bytes);

JMeter Body Data set ${body}

But what was actually sent out was [B@39f9e84c

The actual string received by the server not byte[]

how can i do

JMeter Version

5.5

Java Version

1.8

OS Version

win10

wangchy0927 avatar Nov 02 '23 11:11 wangchy0927