test1373 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. 12345
  18. </data>
  19. </reply>
  20. #
  21. # Client-side
  22. <client>
  23. <server>
  24. http
  25. </server>
  26. <name>
  27. HTTP GET -o fname -i without Content-Disposition, -D stdout
  28. </name>
  29. <command option="no-output,no-include">
  30. http://%HOSTIP:%HTTPPORT/1373 -i -o log/outfile1373 -D -
  31. </command>
  32. <postcheck>
  33. perl %SRCDIR/libtest/notexists.pl log/1373
  34. </postcheck>
  35. </client>
  36. #
  37. # Verify data after the test has been "shot"
  38. <verify>
  39. <strip>
  40. ^User-Agent:.*
  41. </strip>
  42. <protocol>
  43. GET /1373 HTTP/1.1
  44. Host: %HOSTIP:%HTTPPORT
  45. Accept: */*
  46. </protocol>
  47. <file1 name="log/outfile1373" mode="text">
  48. HTTP/1.1 200 OK
  49. Date: Thu, 09 Nov 2010 14:49:00 GMT
  50. Server: test-server/fake
  51. Content-Length: 6
  52. Connection: close
  53. Content-Type: text/html
  54. 12345
  55. </file1>
  56. <file2 name="log/stdout1373" mode="text">
  57. HTTP/1.1 200 OK
  58. Date: Thu, 09 Nov 2010 14:49:00 GMT
  59. Server: test-server/fake
  60. Content-Length: 6
  61. Connection: close
  62. Content-Type: text/html
  63. </file2>
  64. </verify>
  65. </testcase>