test2306 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. </keywords>
  7. </info>
  8. #
  9. # This reproduces the #11101 issue, when the second response comes back
  10. # with the first header being "folded"
  11. <reply>
  12. <data nocheck="yes">
  13. HTTP/1.1 200 OK
  14. Date: Tue, 09 Nov 2010 14:49:00 GMT
  15. Server: test-server/fake
  16. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  17. ETag: "21025-dc7-39462498"
  18. Accept-Ranges: bytes
  19. Content-Length: 6
  20. Content-Type: text/html
  21. Funny-head: yesyes
  22. -foo-
  23. </data>
  24. <data2 nocheck="yes">
  25. HTTP/1.1 200 OK swsclose
  26. Access-Control-Allow-Origin: *
  27. Connection: Keep-Alive
  28. Content-Type: text/html; charset=utf-8
  29. Date: Wed, 10 May 2023 14:58:08 GMT
  30. -foo-
  31. </data2>
  32. </reply>
  33. # Client-side
  34. <client>
  35. <server>
  36. http
  37. </server>
  38. # tool to run
  39. <tool>
  40. lib%TESTNUMBER
  41. </tool>
  42. <name>
  43. HTTP GET reused handle with first header folded
  44. </name>
  45. <command>
  46. http://%HOSTIP:%HTTPPORT/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER0002
  47. </command>
  48. </client>
  49. #
  50. # Verify data after the test has been "shot"
  51. <verify>
  52. # hyper doesn't like the bad header in the second request
  53. <errorcode>
  54. %if hyper
  55. 1
  56. %else
  57. 0
  58. %endif
  59. </errorcode>
  60. <protocol>
  61. GET /%TESTNUMBER HTTP/1.1
  62. Host: %HOSTIP:%HTTPPORT
  63. Accept: */*
  64. GET /%TESTNUMBER0002 HTTP/1.1
  65. Host: %HOSTIP:%HTTPPORT
  66. Accept: */*
  67. </protocol>
  68. </verify>
  69. </testcase>