Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Created May 6, 2017 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/bf99b6495779ef9b39e7011ecd120717 to your computer and use it in GitHub Desktop.
Save anonymous/bf99b6495779ef9b39e7011ecd120717 to your computer and use it in GitHub Desktop.
GET /demo HTTP/1.1
Host: example.com
Connection: Upgrade
Sec-WebSocket-Key2: 12998 5 Y3 1 .P00
Sec-WebSocket-Protocol: sample
Upgrade: WebSocket
Sec-WebSocket-Key1: 4 @1 46546xW%0l 1 5
Origin: http://example.com
^n:ds[4U
HTTP/1.1 101 WebSocket Protocol Handshake
Upgrade: WebSocket
Connection: Upgrade
Sec-WebSocket-Origin: http://example.com
Sec-WebSocket-Location: ws://example.com/demo
Sec-WebSocket-Protocol: sample
8jKS'y:G*Co,Wxa-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment