test1274 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. header line folding
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  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/
  16. fake
  17. folded
  18. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  19. ETag: "21025-dc7-39462498"
  20. Content-Length: 6
  21. Connection:
  22. close
  23. -foo-
  24. </data>
  25. </reply>
  26. #
  27. # Client-side
  28. <client>
  29. <server>
  30. http
  31. </server>
  32. <name>
  33. HTTP header line folding
  34. </name>
  35. <command>
  36. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -D log/out%TESTNUMBER
  37. </command>
  38. </client>
  39. #
  40. # Verify data after the test has been "shot"
  41. <verify>
  42. <protocol>
  43. GET /%TESTNUMBER HTTP/1.1
  44. Host: %HOSTIP:%HTTPPORT
  45. User-Agent: curl/%VERSION
  46. Accept: */*
  47. </protocol>
  48. <file name="log/out%TESTNUMBER">
  49. HTTP/1.1 200 OK
  50. Date: Tue, 09 Nov 2010 14:49:00 GMT
  51. %if hyper
  52. Server: test-server/ fake folded
  53. %else
  54. Server: test-server/
  55. fake
  56. folded
  57. %endif
  58. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  59. ETag: "21025-dc7-39462498"
  60. Content-Length: 6
  61. %if hyper
  62. Connection: close
  63. %else
  64. Connection:
  65. close
  66. %endif
  67. </file>
  68. </verify>
  69. </testcase>