Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Socket created...
- Bound to host, listening in on 127.0.0.1 : 9090
- Listening, waiting for incomming connection... ...
- Waiting for activity on host...
- Buffer: 1
- Creating new user
- Constructing user
- Waiting for activity on host...
- Buffer: 1
- Input:
- GET / HTTP/1.1 <#------original client browser input
- Host: 127.0.0.1:9090
- User-Agent: Mozilla/5.0 (Windows NT 5.2; WOW64; rv:12.0) Gecko/20100101 Firefox/
- 12.0
- Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
- Accept-Language: en-us,en;q=0.5
- Accept-Encoding: gzip, deflate
- Connection: keep-alive, Upgrade
- Sec-WebSocket-Version: 13
- Origin: http://127.0.0.1
- Sec-WebSocket-Key: AuOLPedPBIYolR0jDPm2hA==
- Pragma: no-cache
- Cache-Control: no-cache
- Upgrade: websocket
- string(458) "GET / HTTP/1.1
- Host: 127.0.0.1:9090
- User-Agent: Mozilla/5.0 (Windows NT 5.2; WOW64; rv:12.0) Gecko/20100101 Firefox/
- 12.0
- Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
- Accept-Language: en-us,en;q=0.5
- Accept-Encoding: gzip, deflate
- Connection: keep-alive, Upgrade
- Sec-WebSocket-Version: 13
- Origin: http://127.0.0.1
- Sec-WebSocket-Key: AuOLPedPBIYolR0jDPm2hA==
- Pragma: no-cache
- Cache-Control: no-cache
- Upgrade: websocket
- "
- Key: AuOLPedPBIYolR0jDPm2hA== <#---key sent to server
- int(119) <#----var dump of key per char to ensure within range
- int(101)
- int(88)
- int(76)
- int(118)
- int(117)
- int(108)
- int(53)
- int(67)
- int(55)
- int(77)
- int(97)
- int(101)
- int(65)
- int(116)
- int(106)
- int(67)
- int(87)
- int(121)
- int(99)
- int(90)
- int(104)
- int(83)
- int(73)
- int(56)
- int(84)
- int(99)
- int(61)
- Sending Response:
- HTTP/1.1 101 Switching Protocols
- Upgrade: websocket
- Connection: Upgrade
- Sec-WebSocket-Accept: weXLvul5C7MaeAtjCWycZhSI8Tc= <#----server handshake
- Checking for disconnect <#---not part of handshake response
- Array
- (
- [0] => User Object
- (
- [username] => Bob
- [password] => Chocolate
- [ip] => 127.0.0.1
- [SocketID] => Resource id #7 <#----client browser connection
- )
- )
- Waiting for activity on host...
- #>--------NO CLIENT INPUT via var socket = new WebSocket("ws://127.0.0.1:9090")-----<#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement