【文件属性】:
文件名称:httpbatch:http请求的脚本引擎
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-02 21:22:22
Groovy
那是什么?
HttpBatch是用于http请求的脚本引擎,用于自动测试,爬网程序等。
特征
基于常规,灵活
方便高效
无需编译
用法
安装
下载最新的软件包( )解压缩,然后将路径httpbatch/bin添加到系统环境PATH
跑步
创建一个名为“ example.hb”的新文件
go " http://www.baidu.com "
testEquals 200 ,$$ . statusCode // whether the status code is 200?
def text = $$ . text // get the response as text
println text // output the response
执行脚本文件
$ httpbatch example.hb
例子
邮寄表格
post "YOUR_URL" ,[user:'test',pass
【文件预览】:
httpbatch-master
----.gitignore(77B)
----build.gradle(282B)
----src()
--------main()
----LICENSE(1KB)
----README.md(2KB)