test1074 1.1 KB

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