test1376 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 -i without Content-Disposition, without -D
  28. </name>
  29. <command option="no-output,no-include">
  30. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -i -o %LOGDIR/outfile%TESTNUMBER
  31. </command>
  32. <postcheck>
  33. perl %SRCDIR/libtest/notexists.pl %LOGDIR/%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="%LOGDIR/outfile%TESTNUMBER">
  46. HTTP/1.1 200 OK
  47. Date: Tue, 09 Nov 2010 14:49:00 GMT
  48. Server: test-server/fake
  49. Content-Length: 6
  50. Connection: close
  51. Content-Type: text/html
  52. 12345
  53. </file1>
  54. <file2 name="%LOGDIR/stdout%TESTNUMBER">
  55. </file2>
  56. </verify>
  57. </testcase>