test1365 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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: Tue, 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 without Content-Disposition, -D stdout
  28. </name>
  29. <command option="no-output,no-include">
  30. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -o log/outfile%TESTNUMBER -D -
  31. </command>
  32. <postcheck>
  33. perl %SRCDIR/libtest/notexists.pl log/%TESTNUMBER
  34. </postcheck>
  35. </client>
  36. #
  37. # Verify data after the test has been "shot"
  38. <verify>
  39. <protocol>
  40. GET /%TESTNUMBER HTTP/1.1
  41. Host: %HOSTIP:%HTTPPORT
  42. User-Agent: curl/%VERSION
  43. Accept: */*
  44. </protocol>
  45. <file1 name="log/outfile%TESTNUMBER">
  46. 12345
  47. </file1>
  48. <file2 name="log/stdout%TESTNUMBER">
  49. HTTP/1.1 200 OK
  50. Date: Tue, 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. </file2>
  56. </verify>
  57. </testcase>