curl

unix socket

1
curl --unix-socket /tmp/test.sock  -H "x-mse-original-dst-host:0.0.0.0:15006" -H "Host:127.0.0.1:1234" -H "Connection:close" http:/hello

多次请求

1
curl --unix-socket /tmp/test.sock  -H "x-mse-original-dst-host:0.0.0.0:15006" -H "Host:127.0.0.1:1234" -H "Connection:close" http:/hello?x=[1-100] -w 'Total: %{time_total} \n' -o /dev/null -s

输出

1
curl --unix-socket /tmp/test.sock  -H "x-mse-original-dst-host:0.0.0.0:15006" -H "Host:127.0.0.1:1234" -H "Connection:close" http:/hello?x=[1-100] -w 'Total: %{time_total} \n' -o /dev/null -s