test1074 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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: Thu, 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: Thu, 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/1074 http://%HOSTIP:%HTTPPORT/wantmore/10740001
  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: Thu, 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: Thu, 09 Nov 2010 14:49:00 GMT
  50. Connection: close
  51. surprise2
  52. </stdout>
  53. <strip>
  54. ^User-Agent:.*
  55. </strip>
  56. <protocol>
  57. GET /want/1074 HTTP/1.1
  58. Host: %HOSTIP:%HTTPPORT
  59. Accept: */*
  60. GET /wantmore/10740001 HTTP/1.0
  61. Host: %HOSTIP:%HTTPPORT
  62. Accept: */*
  63. </protocol>
  64. </verify>
  65. </testcase>