Reputation: 1149
I am trying to understand why i have Bad request when i called my api, but works perfectly fine when using Postman/Supertest(JS).
Although, the same request works perfectly fine using Postman.
-I tried Fiddler as well, request seems totally identical, but the response different.
-Using Jmeter v4, but the result is the same on 5.21
Any advice is much appreciated!
Upvotes: 0
Views: 1287
Reputation: 2978
You are sending your request as body data with JMeter but in postman, you are sending it as form data. Check the postman headers accordingly.
In JMeter, for the form data, you have to check the Use multipart/form-data
in your request sampler like this and add your parameters accordingly in the parameter tab instead of Body.
Upvotes: 1