Skip to content

Instantly share code, notes, and snippets.

@pjalusic
Created June 8, 2022 08:50
Show Gist options
  • Save pjalusic/d75ecc3383abe247e477fc4517e8f0f8 to your computer and use it in GitHub Desktop.
Save pjalusic/d75ecc3383abe247e477fc4517e8f0f8 to your computer and use it in GitHub Desktop.
test WS connectivity using curl command (use https at the end to test wss)
curl -o - --http1.1 --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://<some_server>:<server_port>/<some_path>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment