test1376 997 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 -i without Content-Disposition, without -D
  28. </name>
  29. <command option="no-output,no-include">
  30. http://%HOSTIP:%HTTPPORT/1376 -i -o log/outfile1376
  31. </command>
  32. <postcheck>
  33. perl %SRCDIR/libtest/notexists.pl log/1376
  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 /1376 HTTP/1.1
  44. Host: %HOSTIP:%HTTPPORT
  45. Accept: */*
  46. </protocol>
  47. <file1 name="log/outfile1376">
  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/stdout1376">
  57. </file2>
  58. </verify>
  59. </testcase>