test1375 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. </keywords>
  7. </info>
  8. #
  9. <reply>
  10. <data nocheck="yes">
  11. HTTP/1.1 200 OK
  12. Date: Thu, 09 Nov 2010 14:49:00 GMT
  13. Server: test-server/fake
  14. Content-Length: 6
  15. Connection: close
  16. Content-Type: text/html
  17. Content-Disposition: filename=name1375; charset=funny; option=strange
  18. 12345
  19. </data>
  20. </reply>
  21. #
  22. # Client-side
  23. <client>
  24. <server>
  25. http
  26. </server>
  27. <name>
  28. HTTP GET -o fname -i and Content-Disposition, -D stdout
  29. </name>
  30. <command option="no-output,no-include">
  31. http://%HOSTIP:%HTTPPORT/1375 -i -o log/outfile1375 -D -
  32. </command>
  33. <postcheck>
  34. perl %SRCDIR/libtest/notexists.pl log/1375 log/name1375
  35. </postcheck>
  36. </client>
  37. #
  38. # Verify data after the test has been "shot"
  39. <verify>
  40. <strip>
  41. ^User-Agent:.*
  42. </strip>
  43. <protocol>
  44. GET /1375 HTTP/1.1
  45. Host: %HOSTIP:%HTTPPORT
  46. Accept: */*
  47. </protocol>
  48. <file1 name="log/outfile1375" mode="text">
  49. HTTP/1.1 200 OK
  50. Date: Thu, 09 Nov 2010 14:49:00 GMT
  51. Server: test-server/fake
  52. Content-Length: 6
  53. Connection: close
  54. Content-Type: text/html
  55. Content-Disposition: filename=name1375; charset=funny; option=strange
  56. 12345
  57. </file1>
  58. <file2 name="log/stdout1375" mode="text">
  59. HTTP/1.1 200 OK
  60. Date: Thu, 09 Nov 2010 14:49:00 GMT
  61. Server: test-server/fake
  62. Content-Length: 6
  63. Connection: close
  64. Content-Type: text/html
  65. Content-Disposition: filename=name1375; charset=funny; option=strange
  66. </file2>
  67. </verify>
  68. </testcase>