Advertisement
Guest User

output

a guest
Oct 26th, 2011
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. // start
  2. initClientListener()
  3. new ClientSessionTest()
  4. initClientListener()
  5. GET / HTTP/1.1
  6. Host: localhost:1234
  7. User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
  8. Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  9. Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
  10. Accept-Encoding: gzip, deflate
  11. Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
  12. Connection: keep-alive, Upgrade
  13. Sec-WebSocket-Version: 8
  14. Sec-WebSocket-Origin: http://localhost
  15. Sec-WebSocket-Protocol: chat
  16. Sec-WebSocket-Extensions: deflate-stream
  17. Pragma: no-cache
  18. Cache-Control: no-cache
  19. Upgrade: websocket
  20. empty line
  21.  
  22. // empty line found -> send following lines back to client
  23. HTTP/1.1 101 Switching Protocols
  24. Upgrade: websocket
  25. Connection: Upgrade
  26. Sec-WebSocket-Accept: Eae8JqZiarTzWSLIScHc4n5VFtU=
  27. Sec-WebSocket-Protocol: chat
  28. Content-Encoding: identity
  29.  
  30. // messages from client.
  31. // the first line is the message printed as string without any format conversion
  32. // the second line shows the byte value of each character
  33. ?……XTxé98?
  34. -127 -123 -123 88 84 120 -23 57 56 25 -113
  35.  
  36. ?…Š×¶æ¶Ús€
  37. -127 -123 -118 -41 -74 18 -26 -74 -38 115 -128
  38.  
  39. ?…Á÷Ì­|›­Ë
  40. -127 -123 -63 29 -9 -52 -83 124 -101 -83 -53
  41.  
  42.  
  43.  
  44.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement