http_response.toml文件中如何添加调用接口时传入的参数

Viewed 52

做api接口监控时,如果使用http_response.toml插件,传入的参数在http_response.toml文件中该怎么写?
比如 curl -i https://xxxxxxxxxxxx.com/upm/user/login -d '{ "account": "sbdc_test", "password": "qwe@1234"}' -H "Content-Type: application/json; charset=utf-8"
-H可以直接在http_response.toml配置文件中添加headers = ["X-From", "categraf", "X-Xyz", "abc"],那-d的参数怎么写一下?

1 Answers

配置文件这里试试改一下呢

 body = '''
{"account":"sbdc_test","password":"qwe@1234"}
 '''

改完后测试看看输出

./categraf --debug --test --inputs http_response