test160 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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: Tue, 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: Tue, 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/%TESTNUMBER http://%HOSTIP:%HTTPPORT/wantmore/%TESTNUMBER0001
  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: Tue, 09 Nov 2010 14:49:00 GMT
  43. Content-Length: 9
  44. surprise
  45. HTTP/1.1 200 OK swsclose
  46. Date: Tue, 09 Nov 2010 14:49:00 GMT
  47. Connection: close
  48. surprise2
  49. </stdout>
  50. <protocol>
  51. GET /want/%TESTNUMBER HTTP/1.1
  52. Host: %HOSTIP:%HTTPPORT
  53. User-Agent: curl/%VERSION
  54. Accept: */*
  55. GET /wantmore/%TESTNUMBER0001 HTTP/1.1
  56. Host: %HOSTIP:%HTTPPORT
  57. User-Agent: curl/%VERSION
  58. Accept: */*
  59. </protocol>
  60. </verify>
  61. </testcase>