test3012 960 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <testcase>
  2. <info>
  3. <keywords>
  4. -O
  5. -J
  6. --output-dir
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data nocheck="yes">
  13. HTTP/1.1 200 OK
  14. Date: Tue, 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-Disposition: inline; filename="MMM%TESTNUMBERMMM"
  22. Content-Type: text/html
  23. Funny-head: yesyes
  24. -foo-
  25. </data>
  26. </reply>
  27. #
  28. # Client-side
  29. <client>
  30. <server>
  31. http
  32. </server>
  33. <features>
  34. http
  35. </features>
  36. <name>
  37. --output-dir with -J
  38. </name>
  39. <command option="no-output,no-include">
  40. http://%HOSTIP:%HTTPPORT/this/is/the/%TESTNUMBER -OJ --output-dir %PWD/%LOGDIR
  41. </command>
  42. </client>
  43. #
  44. # Verify data after the test has been "shot"
  45. <verify>
  46. <protocol>
  47. GET /this/is/the/%TESTNUMBER HTTP/1.1
  48. Host: %HOSTIP:%HTTPPORT
  49. User-Agent: curl/%VERSION
  50. Accept: */*
  51. </protocol>
  52. <file name="%LOGDIR/MMM%TESTNUMBERMMM">
  53. -foo-
  54. </file>
  55. </verify>
  56. </testcase>