您好,欢迎来到花图问答。
搜索
您的当前位置:首页ab test with json data

ab test with json data

来源:花图问答
# post.json contains the json you want to post
# -p means  POST 
# -T sets the Content-Type
# -c is concurrent clients
# -n is the number of requests to run in the test
#!/bin/bash
ab -n 200 -c 10  -T 'application/json' -p post.json http://127.0.0.1:8002/webapi/ 

post.json

{
    "jsonrpc": "2.0",
    "method": "test_method",
    "params": [1442885518, 1442892718,"testDomain_80"],
    "id": "1"
}

Copyright © 2019- huatuowenda.com 版权所有 湘ICP备2023022495号-1

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务