test1367 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. Content-Disposition: filename=name1367; charset=funny; option=strange
  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 and Content-Disposition, -D stdout
  29. </name>
  30. <command option="no-output,no-include">
  31. http://%HOSTIP:%HTTPPORT/1367 -o log/outfile1367 -D -
  32. </command>
  33. <postcheck>
  34. perl %SRCDIR/libtest/notexists.pl log/1367 log/name1367
  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 /1367 HTTP/1.1
  45. Host: %HOSTIP:%HTTPPORT
  46. Accept: */*
  47. </protocol>
  48. <file1 name="log/outfile1367" mode="text">
  49. 12345
  50. </file1>
  51. <file2 name="log/stdout1367" 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. Content-Disposition: filename=name1367; charset=funny; option=strange
  59. </file2>
  60. </verify>
  61. </testcase>