test74 1.1 KB

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