preface
Recently, I encountered a problem when I used Jmeter to record scripts in a performance test. When I used JMeter to send a request with the same body/header data, I returned an empty list
{"data":[]}
Copy the code
Requests sent in requests/postman (same data/same header) will return normally
{'data': [{'residentId': '1780', 'name': 'residentId']}}Copy the code
The solution
I checked the log together with the developer, because the data sent to the server was not resolved. Then I tried the English data, which was returned normally when I sent it, and then I re-specified the codingutf-8
If you send Chinese data again, it will be returned normally
The last
The default utF-8 is utF-8. If you are using utF-8, you do not need to specify utF-8. If you are using UTF-8, you need to specify utF-8.