Search code examples
file-uploadjmeterperformance-testinginternal-server-error

Jmeter: Binary File Upload Fails with 500 Internal Server Error


I have tried to upload a binary file, which works fine using POSTMAN as below:

Request Headers:

enter image description here

Request Parameter:

enter image description here

Request Body:

enter image description here

Here it works just fine.

I have tried the same Request Header and Body in Jmeter, but getting 500 internal server Error. Please take a look into the below Jmeter configurations:

HTTP Request Parameter:

enter image description here

HTTP Request File Upload:

enter image description here

I am a new bee to JMeter. Can someone help me and let me know what is wrong in the configuration I have done?


Solution

  • Maybe some mismatch in terms of HTTP Headers, if you can successfully execute the request using Postman you should be able to record the same using JMeter's HTTP(S) Test Script Recorder

    1. Start JMeter's HTTP(S) Test Script Recorder
    2. Configure Postman to use JMeter as the proxy

      enter image description here

    3. Copy the file you will be uploading to the "bin" folder of your JMeter installation
    4. Run your request in Postman
    5. JMeter will save the relevant HTTP Request sampler along with the HTTP Header Manager under the Recording Controller