test584 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. Pipelining
  6. multi
  7. </keywords>
  8. </info>
  9. # Server-side
  10. # Silly division of the first request is solely to appease the server which expects n_data_items == n_requests
  11. <reply>
  12. <data1>
  13. HTTP/1.1 200 OK
  14. Server: test-server/fake
  15. Content-Length: 4
  16. 584
  17. </data1>
  18. <data2>
  19. HTTP/1.1 200 OK
  20. </data2>
  21. <data3>
  22. Server: test-server/fake
  23. </data3>
  24. <data4>
  25. Content-Length: 0
  26. HTTP/1.1 200 OK
  27. Server: test-server/fake
  28. Content-Length: 5
  29. 585
  30. HTTP/1.1 200 OK
  31. Server: test-server/fake
  32. Content-Length: 4
  33. 586
  34. </data4>
  35. </reply>
  36. # Client-side
  37. <client>
  38. <server>
  39. http
  40. </server>
  41. <tool>
  42. lib530
  43. </tool>
  44. <name>
  45. HTTP GET using pipelining (nonzero length after zero length)
  46. </name>
  47. <command>
  48. http://%HOSTIP:%HTTPPORT/path/584
  49. </command>
  50. </client>
  51. # Verify data after the test has been "shot"
  52. <verify>
  53. <protocol>
  54. GET /path/5840001 HTTP/1.1
  55. Host: %HOSTIP:%HTTPPORT
  56. Accept: */*
  57. GET /path/5840002 HTTP/1.1
  58. Host: %HOSTIP:%HTTPPORT
  59. Accept: */*
  60. GET /path/5840003 HTTP/1.1
  61. Host: %HOSTIP:%HTTPPORT
  62. Accept: */*
  63. GET /path/5840004 HTTP/1.1
  64. Host: %HOSTIP:%HTTPPORT
  65. Accept: */*
  66. </protocol>
  67. <stdout>
  68. HTTP/1.1 200 OK
  69. Server: test-server/fake
  70. Content-Length: 4
  71. 584
  72. HTTP/1.1 200 OK
  73. Server: test-server/fake
  74. Content-Length: 0
  75. HTTP/1.1 200 OK
  76. Server: test-server/fake
  77. Content-Length: 5
  78. 585
  79. HTTP/1.1 200 OK
  80. Server: test-server/fake
  81. Content-Length: 4
  82. 586
  83. </stdout>
  84. </verify>
  85. </testcase>