Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View trinityXmontoya's full-sized avatar
🕵️‍♂️
investigating

trinityXmontoya

🕵️‍♂️
investigating
View GitHub Profile
@htp
htp / curl-websocket.sh
Last active April 22, 2024 14:14
Test a WebSocket using 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:80/