我想对使用 HTTPERF 将文件上传到远程服务器进行基准测试
我知道有一个 wsesslog 选项,我可以在其中提供表单数据的条目。
但是我也可以发送文件的发布请求吗?
就像是:
httperf --hog --server 127.0.0.1 --port 5000
--add-header="Content-Type: application/x-www-form-urlencoded\n" --wsesslog=150,0,httperf_content
httperf_content 文件包含
/ method=POST contents="file=PATH_TO_FILE"