test86 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. globbing
  7. [] range
  8. </keywords>
  9. </info>
  10. #
  11. # Server-side
  12. <reply>
  13. <data nocheck="yes">
  14. HTTP/1.1 200 OK
  15. Date: Thu, 09 Nov 2010 14:49:00 GMT
  16. Server: test-server/fake
  17. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  18. ETag: "21025-dc7-39462498"
  19. Accept-Ranges: bytes
  20. Content-Length: 6
  21. Connection: close
  22. Content-Type: text/html
  23. Funny-head: yesyes
  24. -foo-
  25. </data>
  26. <data1>
  27. HTTP/1.0 200 OK
  28. Content-Type: text/html
  29. Funny-head: swsclose
  30. crap data
  31. </data1>
  32. <data2>
  33. HTTP/1.0 200 OK
  34. Content-Type: text/html
  35. Funny-head: swsclose
  36. crap data
  37. </data2>
  38. <data3>
  39. HTTP/1.0 200 OK
  40. Content-Type: text/html
  41. Funny-head: swsclose
  42. crap data
  43. </data3>
  44. </reply>
  45. #
  46. # Client-side
  47. <client>
  48. <server>
  49. http
  50. </server>
  51. <name>
  52. HTTP, urlglob []-retrieval and -o #[num] usage
  53. </name>
  54. <command option="no-output">
  55. "http://%HOSTIP:%HTTPPORT/[860001-860003]" -o "log/dumpit#1.dump"
  56. </command>
  57. </client>
  58. #
  59. # Verify data after the test has been "shot"
  60. <verify>
  61. <strip>
  62. ^User-Agent:.*
  63. </strip>
  64. <protocol>
  65. GET /860001 HTTP/1.1
  66. 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
  67. Host: %HOSTIP:%HTTPPORT
  68. Accept: */*
  69. GET /860002 HTTP/1.1
  70. 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
  71. Host: %HOSTIP:%HTTPPORT
  72. Accept: */*
  73. GET /860003 HTTP/1.1
  74. 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
  75. Host: %HOSTIP:%HTTPPORT
  76. Accept: */*
  77. </protocol>
  78. # we check the second file
  79. <file name="log/dumpit860002.dump">
  80. HTTP/1.0 200 OK
  81. Content-Type: text/html
  82. Funny-head: swsclose
  83. crap data
  84. </file>
  85. </verify>
  86. </testcase>