test2305 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <testcase>
  2. <info>
  3. <keywords>
  4. WebSockets
  5. </keywords>
  6. </info>
  7. #
  8. # Sends three 4097 bytes TEXT frames, as one single message
  9. <reply>
  10. <data nocheck="yes">
  11. HTTP/1.1 101 Switching to WebSockets
  12. Server: test-server/fake
  13. Upgrade: websocket
  14. Connection: Upgrade
  15. Something: else
  16. Sec-WebSocket-Accept: HkPsVga7+8LuxM4RGQ5p9tZHeYs=
  17. %hex[%01%7e%10%01]hex%%repeat[256 x helothisisdaniel]%
  18. %hex[%01%7e%10%01]hex%%repeat[256 x helothisisdaniel]%
  19. %hex[%81%7e%10%01]hex%%repeat[256 x helothisisdaniel]%
  20. </data>
  21. # allow upgrade
  22. <servercmd>
  23. upgrade
  24. </servercmd>
  25. </reply>
  26. #
  27. # Client-side
  28. <client>
  29. # require debug for the forced CURL_ENTROPY
  30. <features>
  31. debug
  32. ws
  33. </features>
  34. <server>
  35. http
  36. </server>
  37. <name>
  38. WebSocket curl_ws_recv() loop reading three larger frames
  39. </name>
  40. <tool>
  41. lib%TESTNUMBER
  42. </tool>
  43. <command>
  44. ws://%HOSTIP:%HTTPPORT/%TESTNUMBER %LOGDIR/save%TESTNUMBER
  45. </command>
  46. </client>
  47. #
  48. <verify>
  49. <file name="%LOGDIR/save%TESTNUMBER">
  50. %repeat[256 x helothisisdaniel]%
  51. %repeat[256 x helothisisdaniel]%
  52. %repeat[256 x helothisisdaniel]%
  53. </file>
  54. </verify>
  55. </testcase>