rakyll / hey

HTTP load generator, ApacheBench (ab) replacement
Apache License 2.0
17.63k stars 1.17k forks source link

How to support a url that feeds the other url as the parameter #253

Open ZW007 opened 2 years ago

ZW007 commented 2 years ago

I have an image classification application. In curl, I can feed the image source to the application source by:

curl app-url -X post -d image-url

Now the app can read the image and do the work. Can you please tell me what is the corresponding hey command?

ANGkeith commented 2 years ago

Probably something along this line,

hey -m POST "app-url" -T "application/x-www-form-urlencode" -d "image-url" 

Does this work ?