I have a curl request and i don't know how to transform it in jmeter :
curl -H application-id:my-app-id -H secret-key:my-secret-key -H Content-Type:"multipart/form-data" -H application-type:REST --form upload=@/logo.jpg -X POST -v http://localhost:8080/api/v1/files/Photos/logo.jpg
What is the best way of doing this?
Option 1: Record the request
In JMeter:
In console:
curl -x localhost:8888 -H application-id:my-app-id ......
Option 2: Building Request Manually
Add HTTP Request sampler and configure it as follows:
localhost
8080
POST
/api/v1/files/Photos/logo.jpg
Use multipart/form-data
for POSTupload
as Parameter Name and image.jpg
as MIME TypeAdd HTTP Header Manager and provide your headers names and values there
References: