dotfiles/bin/ws

8 lines
161 B
Plaintext
Raw Normal View History

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