dotfiles/bin/ws

8 lines
161 B
Plaintext
Raw Permalink Normal View History

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