1、普通接口调用
curl -H ‘Content-Type:application/json; charset=utf8’ \
-X POST http://10.10.10.22:8088/api/test
2、测试接口响应时间
curl -w "time_connect: %{time_connect}\ntime_starttransfer: %{time_starttransfer}\ntime_total: %{time_total}\n" \
-d "username=ea24943b&password=a9b68e8&time=1601446518495&sign=55ba1bee62c7a670500ca5cca18c9" \
-X POST http://10.10.10.22:8088/api/login
3、测试WebSocket
curl --no-buffer -v \
-H 'Connection: keep-alive, Upgrade' \
-H 'Upgrade: websocket' \
-H 'Sec-WebSocket-Version: 13' \
-H 'Sec-WebSocket-Key: websocket' \
http://10.10.10.22:8088/ws/event ws | od -t c