test1368 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. -J
  7. </keywords>
  8. </info>
  9. #
  10. <reply>
  11. <data nocheck="yes">
  12. HTTP/1.1 200 OK
  13. Date: Thu, 09 Nov 2010 14:49:00 GMT
  14. Server: test-server/fake
  15. Content-Length: 6
  16. Connection: close
  17. Content-Type: text/html
  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 -J without Content-Disposition, -D file
  29. </name>
  30. <command option="no-output,no-include">
  31. http://%HOSTIP:%HTTPPORT/1368 -J -o log/outfile1368 -D log/heads1368
  32. </command>
  33. <postcheck>
  34. perl %SRCDIR/libtest/notexists.pl log/1368
  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 /1368 HTTP/1.1
  45. Host: %HOSTIP:%HTTPPORT
  46. Accept: */*
  47. </protocol>
  48. <file1 name="log/outfile1368" mode="text">
  49. 12345
  50. </file1>
  51. <file2 name="log/heads1368" mode="text">
  52. HTTP/1.1 200 OK
  53. Date: Thu, 09 Nov 2010 14:49:00 GMT
  54. Server: test-server/fake
  55. Content-Length: 6
  56. Connection: close
  57. Content-Type: text/html
  58. </file2>
  59. <file3 name="log/stdout1368" mode="text">
  60. </file3>
  61. </verify>
  62. </testcase>