tsenart / vegeta

HTTP load testing tool and library. It's over 9000!
http://godoc.org/github.com/tsenart/vegeta/lib
MIT License
23.01k stars 1.34k forks source link

Problem sending image as multipart/formdata #572

Open johan14 opened 3 years ago

johan14 commented 3 years ago

Question

Hi guys! Can somebody help me sending an request with an image in local PC as multipart/formdata because I haven't found any solution till now.

Thank you!

Atharex commented 2 years ago

Would love this feature as well!

Hopefully something in the lines of this, when sending a raw binData image:

echo "{\"method\": \"POST\", \"header\": {\"Content-Type\": [\"multipart/form-data\"] }, \"url\": \"<my-endpoint>\", \"binData\": \"@my-image.jpg\" }"
| vegeta -cpus=4 attack -duration=1s -rate=5 -max-connections=1 -max-workers=1 -format=json