test160 1.0 KB

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