Skip to content

Instantly share code, notes, and snippets.

@NNdroid
Last active August 26, 2023 14:25
Show Gist options
  • Save NNdroid/29fe907b0aa41bba70b098f640b9af5a to your computer and use it in GitHub Desktop.
Save NNdroid/29fe907b0aa41bba70b098f640b9af5a to your computer and use it in GitHub Desktop.
test a websocket by curl
curl --include --no-buffer --header "Connection: Upgrade" --header "Upgrade: websocket" --header "Host: example.com:80" --header "Origin: http://example.com:80" --header "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" --header "Sec-WebSocket-Version: 13" http://example.com/3017068469711469711
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment