test2300 908 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <testcase>
  2. <info>
  3. <keywords>
  4. WebSockets
  5. </keywords>
  6. </info>
  7. #
  8. # Server-side
  9. <reply>
  10. <data nocheck="yes">
  11. HTTP/1.1 101 Switching to WebSockets swsclose
  12. Server: test-server/fake
  13. Upgrade: websocket
  14. Connection: Upgrade
  15. Sec-WebSocket-Accept: HkPsVga7+8LuxM4RGQ5p9tZHeYs=
  16. </data>
  17. # allow upgrade
  18. <servercmd>
  19. upgrade
  20. </servercmd>
  21. </reply>
  22. #
  23. # Client-side
  24. <client>
  25. # for the forced CURL_ENTROPY
  26. <features>
  27. debug
  28. ws
  29. </features>
  30. <server>
  31. http
  32. </server>
  33. <name>
  34. WebSockets upgrade only
  35. </name>
  36. <command>
  37. ws://%HOSTIP:%HTTPPORT/%TESTNUMBER
  38. </command>
  39. </client>
  40. #
  41. # Verify data after the test has been "shot"
  42. <verify>
  43. <protocol nocheck="yes">
  44. GET /%TESTNUMBER HTTP/1.1
  45. Host: %HOSTIP:%HTTPPORT
  46. User-Agent: curl/%VERSION
  47. Accept: */*
  48. Upgrade: websocket
  49. Connection: Upgrade
  50. Sec-WebSocket-Version: 13
  51. Sec-WebSocket-Key: NDMyMTUzMjE2MzIxNzMyMQ==
  52. </protocol>
  53. <errorcode>
  54. 52
  55. </errorcode>
  56. </verify>
  57. </testcase>