开源的socket服务端客户端,支持C# C++

Http-Test-Data.txt 924B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. ---------- chunk test ----------
  2. POST /push_admin/pushMessage?key=jara&level=4&bustCache=0.338728998018027 HTTP/1.1
  3. Content-Type: text/plain
  4. Transfer-Encoding: chunked
  5. 23
  6. This is the data in the first chunk
  7. 1A
  8. and this is the second one
  9. 0
  10. --------------------------------
  11. -------- websocket test --------
  12. GET /demo HTTP/1.1
  13. Upgrade: WebSocket
  14. Connection: Upgrade
  15. Host: example.com
  16. Origin: http://example.com
  17. WebSocket-Protocol: sample
  18. Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==
  19. abcde
  20. --------------------------------
  21. HTTP/1.1 101 Switching Protocols
  22. Connection: Upgrade
  23. Upgrade: WebSocket
  24. Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo=
  25. Sec-WebSocket-Protocol: chat
  26. --------- CONNECT test ---------
  27. CONNECT www.web-tinker.com:80 HTTP/1.1
  28. Host: www.web-tinker.com:80
  29. Proxy-Connection: Keep-Alive
  30. Proxy-Authorization: Basic *
  31. --------------------------------
  32. HTTP/1.1 200 Connection Established
  33. Content-Length: 0