2
0

test1365 1005 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 without Content-Disposition, -D stdout
  28. </name>
  29. <command option="no-output,no-include">
  30. http://%HOSTIP:%HTTPPORT/1365 -o log/outfile1365 -D -
  31. </command>
  32. <postcheck>
  33. perl %SRCDIR/libtest/notexists.pl log/1365
  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 /1365 HTTP/1.1
  44. Host: %HOSTIP:%HTTPPORT
  45. Accept: */*
  46. </protocol>
  47. <file1 name="log/outfile1365" mode="text">
  48. 12345
  49. </file1>
  50. <file2 name="log/stdout1365" mode="text">
  51. HTTP/1.1 200 OK
  52. Date: Thu, 09 Nov 2010 14:49:00 GMT
  53. Server: test-server/fake
  54. Content-Length: 6
  55. Connection: close
  56. Content-Type: text/html
  57. </file2>
  58. </verify>
  59. </testcase>