test86 1.7 KB

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