Skip to content

Instantly share code, notes, and snippets.

@higebu
Created May 12, 2016 11:32
Show Gist options
  • Save higebu/123794e0a0c3bc98e2fc535df2713cef to your computer and use it in GitHub Desktop.
Save higebu/123794e0a0c3bc98e2fc535df2713cef to your computer and use it in GitHub Desktop.
Test WebSocket with curl
curl -i -N -H "Connection: Upgrade" -H "Upgrade: websocket" -H "Host: echo.websocket.org" -H "Origin: https://www.websocket.org" https://echo.websocket.org
@dbolkensteyn
Copy link

wscat -c ws://echo.websocket.org however works as expected, see https://www.npmjs.com/package/wscat

It would be nice to achieve the same with just curl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment