HTTP_prot = { "/gateway/services", "/gateway/services", } --接口类型 HTTP_type = { "POST", "POST ...
引言 wrk的命令行参数只能发送类似于get delete这种不在请求体中带参数的http请求,如果要发送post这类请求,必须要写Lua脚本。由于wrk具有内置的LuaJIT 用于Lua的即时编译器 ,可以使用Lua脚本进行扩展。 也不必担心没学过Lua不会写脚本,Lua的可读性很强,类似于Python。通过下面简单的示例,完全可以模仿出一个更高级的脚本,况且官方也写了好几个模板供我们使用。 ...
2021-01-31 16:44 0 297 推荐指数:
HTTP_prot = { "/gateway/services", "/gateway/services", } --接口类型 HTTP_type = { "POST", "POST ...
...
...
或者: 此方法需要一些jar包的支持 https://download.csdn.net/download/qq_35792159/10301873 ...
curl curl http://127.0.2.1:5353/user/get_macro_data -X POST -d '{"num": "7"}' --header "Content-Type: application/json" ...
public static void postNewComment(Context context,final UserAccount userAccount,final String comm ...
...