apache / apache/jmeter

how to send bytes by http request

Open
#6,099 0 comments 0 reactions 0 assignees View on GitHub
defect to-triage
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

### 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.