Created
May 12, 2016 11:32
-
-
Save higebu/123794e0a0c3bc98e2fc535df2713cef to your computer and use it in GitHub Desktop.
Test WebSocket with curl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -i -N -H "Connection: Upgrade" -H "Upgrade: websocket" -H "Host: echo.websocket.org" -H "Origin: https://www.websocket.org" https://echo.websocket.org |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wscat -c ws://echo.websocket.org
however works as expected, see https://www.npmjs.com/package/wscatIt would be nice to achieve the same with just curl.