2
0

test1377 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=name1377; 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 -i and Content-Disposition, without -D
  29. </name>
  30. <command option="no-output,no-include">
  31. http://%HOSTIP:%HTTPPORT/1377 -i -o log/outfile1377
  32. </command>
  33. <postcheck>
  34. perl %SRCDIR/libtest/notexists.pl log/1377 log/name1377
  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 /1377 HTTP/1.1
  45. Host: %HOSTIP:%HTTPPORT
  46. Accept: */*
  47. </protocol>
  48. <file1 name="log/outfile1377">
  49. HTTP/1.1 200 OK
  50. Date: Thu, 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. Content-Disposition: filename=name1377; charset=funny; option=strange
  56. 12345
  57. </file1>
  58. <file2 name="log/stdout1377">
  59. </file2>
  60. </verify>
  61. </testcase>