2
0

test1374 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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=name1374; 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 file
  29. </name>
  30. <command option="no-output,no-include">
  31. http://%HOSTIP:%HTTPPORT/1374 -i -o log/outfile1374 -D log/heads1374
  32. </command>
  33. <postcheck>
  34. perl %SRCDIR/libtest/notexists.pl log/1374 log/name1374
  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 /1374 HTTP/1.1
  45. Host: %HOSTIP:%HTTPPORT
  46. Accept: */*
  47. </protocol>
  48. <file1 name="log/outfile1374">
  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=name1374; charset=funny; option=strange
  56. 12345
  57. </file1>
  58. <file2 name="log/heads1374">
  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=name1374; charset=funny; option=strange
  66. </file2>
  67. <file3 name="log/stdout1374">
  68. </file3>
  69. </verify>
  70. </testcase>