test160 1016 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <testcase>
  2. # Server-side
  3. <reply>
  4. <data nocheck="yes">
  5. HTTP/1.1 200 OK swsclose
  6. Date: Thu, 09 Nov 2010 14:49:00 GMT
  7. Content-Length: 9
  8. surprise
  9. </data>
  10. <data1>
  11. HTTP/1.1 200 OK swsclose
  12. Date: Thu, 09 Nov 2010 14:49:00 GMT
  13. Connection: close
  14. surprise2
  15. </data1>
  16. <postcmd>
  17. wait 1
  18. </postcmd>
  19. </reply>
  20. # Client-side
  21. <client>
  22. <server>
  23. http
  24. </server>
  25. <name>
  26. HTTP with delayed close, conn reuse, connection reset and retry
  27. </name>
  28. <command>
  29. http://%HOSTIP:%HTTPPORT/want/160 http://%HOSTIP:%HTTPPORT/wantmore/1600001
  30. </command>
  31. </client>
  32. # Verify data after the test has been "shot"
  33. <verify>
  34. <stdout>
  35. HTTP/1.1 200 OK swsclose
  36. Date: Thu, 09 Nov 2010 14:49:00 GMT
  37. Content-Length: 9
  38. surprise
  39. HTTP/1.1 200 OK swsclose
  40. Date: Thu, 09 Nov 2010 14:49:00 GMT
  41. Connection: close
  42. surprise2
  43. </stdout>
  44. <strip>
  45. ^User-Agent:.*
  46. </strip>
  47. <protocol>
  48. GET /want/160 HTTP/1.1
  49. Host: %HOSTIP:%HTTPPORT
  50. Accept: */*
  51. GET /wantmore/1600001 HTTP/1.1
  52. Host: %HOSTIP:%HTTPPORT
  53. Accept: */*
  54. </protocol>
  55. </verify>
  56. </testcase>