Search code examples
jmeterjmeter-4.0

JMeter zip file download from application


I have a requirement to select multiple files in my application and need to download the zip files after processsing. Using Jmeter I am unable to download the file , getting the error message:

{"exception_body":{"http_response_code":400,"message":"The request could not be understood due to malformed syntax.","debug_message":"HTTP 400 Bad Request","error_code":1000}}

enter image description here

Thanks in Advance


Solution

  • As per you error screenshot:-

    1-The request is not formatted correctly. Need to correct this. Once done, it will show status 200 but will not download anything. Considering this is the request to download the zip.

    1. In order to download the zip, use "Save Response to a file" listener under the download request. This will download the zip file.

    Update for regular expression, check below:- enter image description here