test2001 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. FTP
  7. PASV
  8. FILE
  9. multiprotocol
  10. </keywords>
  11. </info>
  12. #
  13. # Server-side
  14. <reply>
  15. <data1 nocheck="yes">
  16. HTTP/1.1 200 OK
  17. Date: Tue, 09 Nov 2010 14:49:00 GMT
  18. Server: test-server/fake
  19. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  20. ETag: "21025-dc7-39462498"
  21. Accept-Ranges: bytes
  22. Content-Length: 6
  23. Connection: close
  24. Content-Type: text/html
  25. Funny-head: yesyes
  26. -foo-
  27. </data1>
  28. <data2 nocheck="yes">
  29. data
  30. to
  31. see
  32. that FTP
  33. works
  34. so does it?
  35. </data2>
  36. </reply>
  37. #
  38. # Client-side
  39. <client>
  40. <server>
  41. http
  42. ftp
  43. file
  44. </server>
  45. <name>
  46. HTTP GET followed by FTP RETR followed by FILE
  47. </name>
  48. <command option="no-include">
  49. http://%HOSTIP:%HTTPPORT/%TESTNUMBER0001 ftp://%HOSTIP:%FTPPORT/%TESTNUMBER0002 file://localhost%FILE_PWD/log/test%TESTNUMBER.txt
  50. </command>
  51. <file name="log/test%TESTNUMBER.txt">
  52. foo
  53. bar
  54. bar
  55. foo
  56. moo
  57. </file>
  58. </client>
  59. #
  60. # Verify data after the test has been "shot"
  61. <verify>
  62. <protocol>
  63. GET /%TESTNUMBER0001 HTTP/1.1
  64. Host: %HOSTIP:%HTTPPORT
  65. User-Agent: curl/%VERSION
  66. Accept: */*
  67. USER anonymous
  68. PASS [email protected]
  69. PWD
  70. EPSV
  71. TYPE I
  72. SIZE %TESTNUMBER0002
  73. RETR %TESTNUMBER0002
  74. QUIT
  75. </protocol>
  76. <stdout>
  77. -foo-
  78. data
  79. to
  80. see
  81. that FTP
  82. works
  83. so does it?
  84. foo
  85. bar
  86. bar
  87. foo
  88. moo
  89. </stdout>
  90. </verify>
  91. </testcase>