test74 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. globbing
  7. {} list
  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. 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. Connection: close
  30. crap data
  31. </data1>
  32. </reply>
  33. #
  34. # Client-side
  35. <client>
  36. <server>
  37. http
  38. </server>
  39. <name>
  40. HTTP, urlglob {}-retrieval and -o #[num] usage
  41. </name>
  42. <command option="no-output">
  43. "http://%HOSTIP:%HTTPPORT/{74,740001}" -o "log/dumpit#1.dump"
  44. </command>
  45. </client>
  46. #
  47. # Verify data after the test has been "shot"
  48. <verify>
  49. <strip>
  50. ^User-Agent:.*
  51. </strip>
  52. <protocol>
  53. GET /74 HTTP/1.1
  54. Host: %HOSTIP:%HTTPPORT
  55. Accept: */*
  56. GET /740001 HTTP/1.1
  57. Host: %HOSTIP:%HTTPPORT
  58. Accept: */*
  59. </protocol>
  60. <file name="log/dumpit740001.dump">
  61. HTTP/1.0 200 OK
  62. Content-Type: text/html
  63. Funny-head: swsclose
  64. Connection: close
  65. crap data
  66. </file>
  67. </verify>
  68. </testcase>