test86 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. [] range
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data nocheck="yes">
  13. HTTP/1.1 200 OK
  14. Date: Thu, 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. Connection: close
  21. Content-Type: text/html
  22. Funny-head: yesyes
  23. -foo-
  24. </data>
  25. <data1>
  26. HTTP/1.0 200 OK
  27. Content-Type: text/html
  28. Funny-head: swsclose
  29. crap data
  30. </data1>
  31. <data2>
  32. HTTP/1.0 200 OK
  33. Content-Type: text/html
  34. Funny-head: swsclose
  35. crap data
  36. </data2>
  37. <data3>
  38. HTTP/1.0 200 OK
  39. Content-Type: text/html
  40. Funny-head: swsclose
  41. crap data
  42. </data3>
  43. </reply>
  44. #
  45. # Client-side
  46. <client>
  47. <server>
  48. http
  49. </server>
  50. <name>
  51. HTTP, urlglob []-retrieval and -o #[num] usage
  52. </name>
  53. <command option="no-output">
  54. "http://%HOSTIP:%HTTPPORT/[860001-860003]" -o "log/dumpit#1.dump"
  55. </command>
  56. </client>
  57. #
  58. # Verify data after the test has been "shot"
  59. <verify>
  60. <strip>
  61. ^User-Agent:.*
  62. </strip>
  63. <protocol>
  64. GET /860001 HTTP/1.1
  65. User-Agent: curl/7.10.7-pre4 (i686-pc-linux-gnu) libcurl/7.10.7-pre4 OpenSSL/0.9.7a ipv6 zlib/1.1.3 GSS
  66. Host: %HOSTIP:%HTTPPORT
  67. Accept: */*
  68. GET /860002 HTTP/1.1
  69. User-Agent: curl/7.10.7-pre4 (i686-pc-linux-gnu) libcurl/7.10.7-pre4 OpenSSL/0.9.7a ipv6 zlib/1.1.3 GSS
  70. Host: %HOSTIP:%HTTPPORT
  71. Accept: */*
  72. GET /860003 HTTP/1.1
  73. User-Agent: curl/7.10.7-pre4 (i686-pc-linux-gnu) libcurl/7.10.7-pre4 OpenSSL/0.9.7a ipv6 zlib/1.1.3 GSS
  74. Host: %HOSTIP:%HTTPPORT
  75. Accept: */*
  76. </protocol>
  77. # we check the second file
  78. <file name="log/dumpit860002.dump">
  79. HTTP/1.0 200 OK
  80. Content-Type: text/html
  81. Funny-head: swsclose
  82. crap data
  83. </file>
  84. </verify>
  85. </testcase>