Add convenience scripts

This commit is contained in:
Jonas Juselius
2019-12-18 10:08:28 +01:00
parent 8a1b99544f
commit bd0066f615
4 changed files with 70 additions and 0 deletions

12
bootstrap/bin/ws-curl.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/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" $@