test1366 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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: Tue, 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=name%TESTNUMBER; 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 file
  29. </name>
  30. <command option="no-output,no-include">
  31. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -o log/outfile%TESTNUMBER -D log/heads%TESTNUMBER
  32. </command>
  33. <postcheck>
  34. perl %SRCDIR/libtest/notexists.pl log/%TESTNUMBER log/name%TESTNUMBER
  35. </postcheck>
  36. </client>
  37. #
  38. # Verify data after the test has been "shot"
  39. <verify>
  40. <protocol>
  41. GET /%TESTNUMBER HTTP/1.1
  42. Host: %HOSTIP:%HTTPPORT
  43. User-Agent: curl/%VERSION
  44. Accept: */*
  45. </protocol>
  46. <file1 name="log/outfile%TESTNUMBER">
  47. 12345
  48. </file1>
  49. <file2 name="log/heads%TESTNUMBER">
  50. HTTP/1.1 200 OK
  51. Date: Tue, 09 Nov 2010 14:49:00 GMT
  52. Server: test-server/fake
  53. Content-Length: 6
  54. Connection: close
  55. Content-Type: text/html
  56. Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
  57. </file2>
  58. <file3 name="log/stdout%TESTNUMBER">
  59. </file3>
  60. </verify>
  61. </testcase>