I have been trying to run a script associated with file upload using JMeter. Everytime, I run the script, the script fails with '404 Not Found' in the response. After a detailed analysis on the request generated in 'View Results Tree', i found out that the boundary value is generated dynamically every time i run the script (i am not sure if this is causing the issue). I have tried below steps:
Defined the boundary in 'HTTP Header Manager' by setting "Content-Type:multipart/form-data; boundary=----WebKitFormBoundaryp9kjnMqqJinub6Us" and unchecked 'use multipart/form-data for POST' in the HTTP Request (Parameter and File Upload tabs) and ran the script Result: 404 Not Found I still see the dynamic boundaries generated in the request from the result tree
Did not define boundary in 'HTTP Header Manager' and checked 'use multipart/form-data for POST' in the HTTP Request (Parameter and File Upload tabs) and ran the script Result: 404 Not Found I see the dynamic boundaries generated in the request from the result tree
Other Notes related to request data: My HTTP Request data contains data in parameters and file upload tabs. Used Relative File Path (file exist in jmeter bin). I cannot enter the boundary information in HTTP Request body since I have the data in HTTP Request parameters and file upload tabs
Please advise on how to handle with dynamic boundaries and to make the file upload script successful. Greatly appreciate your help!