test1370 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. -J
  7. </keywords>
  8. </info>
  9. #
  10. <reply>
  11. <data nocheck="yes">
  12. HTTP/1.1 200 OK
  13. Date: Thu, 09 Nov 2010 14:49:00 GMT
  14. Server: test-server/fake
  15. Content-Length: 6
  16. Connection: close
  17. Content-Type: text/html
  18. Content-Disposition: filename=name1370; charset=funny; option=strange
  19. 12345
  20. </data>
  21. </reply>
  22. #
  23. # Client-side
  24. <client>
  25. <server>
  26. http
  27. </server>
  28. <name>
  29. HTTP GET -o fname -J and Content-Disposition, -D file
  30. </name>
  31. <command option="no-output,no-include">
  32. http://%HOSTIP:%HTTPPORT/1370 -J -o log/outfile1370 -D log/heads1370
  33. </command>
  34. <postcheck>
  35. perl %SRCDIR/libtest/notexists.pl log/1370 log/name1370
  36. </postcheck>
  37. </client>
  38. #
  39. # Verify data after the test has been "shot"
  40. <verify>
  41. <strip>
  42. ^User-Agent:.*
  43. </strip>
  44. <protocol>
  45. GET /1370 HTTP/1.1
  46. Host: %HOSTIP:%HTTPPORT
  47. Accept: */*
  48. </protocol>
  49. <file1 name="log/outfile1370" mode="text">
  50. 12345
  51. </file1>
  52. <file2 name="log/heads1370" mode="text">
  53. HTTP/1.1 200 OK
  54. Date: Thu, 09 Nov 2010 14:49:00 GMT
  55. Server: test-server/fake
  56. Content-Length: 6
  57. Connection: close
  58. Content-Type: text/html
  59. Content-Disposition: filename=name1370; charset=funny; option=strange
  60. </file2>
  61. <file3 name="log/stdout1370" mode="text">
  62. </file3>
  63. </verify>
  64. </testcase>