[feature] check if websocket working with curl

This commit is contained in:
Klesh Wong 2020-12-26 23:29:34 +08:00
parent 0bbd32141e
commit afbe1de976

7
bin/ws Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
curl -i -N -vv \
-H "Connection: Upgrade" \
-H "Upgrade: websocket" \
-H "Host: $(basename "$(dirname "$1")")" \
-H "Origin: $1" "$1"