six-ddc / plow

A high-performance HTTP benchmarking tool that includes a real-time web UI and terminal display
Apache License 2.0
4.11k stars 140 forks source link

Support for multipart request #24

Open IttiS46 opened 2 years ago

IttiS46 commented 2 years ago

Hello,

is there a way to send multipart/form-data with Post request using this tool?

Gerry0815 commented 1 year ago

Created a super simple way to add multipart/form-data in: https://github.com/braintribehq/plow Beside maybe some other issues the main drawback is that I added the complete file into memory. For my cases it does not matter but of course this is not a good solution.

six-ddc commented 1 year ago

Multipart has a complex format, making it difficult to build through command line options. A better approach may be to manually directly build the raw body. Thanks to @Gerry0815 for providing a great reference implementation.