13 lines
244 B
Bash
Executable File
13 lines
244 B
Bash
Executable File
#!/bin/sh
|
|
|
|
host=$1; shift
|
|
|
|
curl -i -N \
|
|
-H "Connection: upgrade"\
|
|
-H "Upgrade: websocket"\
|
|
-H "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ=="\
|
|
-H "Sec-WebSocket-Version: 13"\
|
|
-H "Origin: http://foo.com/"\
|
|
-H "Host: $host" $@
|
|
|