test1316 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. PASV
  6. LIST
  7. HTTP
  8. HTTP CONNECT
  9. HTTP proxy
  10. </keywords>
  11. </info>
  12. #
  13. # Server-side
  14. <reply>
  15. <connect>
  16. HTTP/1.1 200 Mighty fine indeed
  17. Magic: sure you can FTP me
  18. </connect>
  19. # When doing LIST, we get the default list output hard-coded in the test
  20. # FTP server
  21. <datacheck>
  22. HTTP/1.1 200 Mighty fine indeed
  23. Magic: sure you can FTP me
  24. HTTP/1.1 200 Mighty fine indeed
  25. Magic: sure you can FTP me
  26. total 20
  27. drwxr-xr-x 8 98 98 512 Oct 22 13:06 .
  28. drwxr-xr-x 8 98 98 512 Oct 22 13:06 ..
  29. drwxr-xr-x 2 98 98 512 May 2 1996 .NeXT
  30. -r--r--r-- 1 0 1 35 Jul 16 1996 README
  31. lrwxrwxrwx 1 0 1 7 Dec 9 1999 bin -> usr/bin
  32. dr-xr-xr-x 2 0 1 512 Oct 1 1997 dev
  33. drwxrwxrwx 2 98 98 512 May 29 16:04 download.html
  34. dr-xr-xr-x 2 0 1 512 Nov 30 1995 etc
  35. drwxrwxrwx 2 98 1 512 Oct 30 14:33 pub
  36. dr-xr-xr-x 5 0 1 512 Oct 1 1997 usr
  37. </datacheck>
  38. </reply>
  39. #
  40. # Client-side
  41. <client>
  42. # please send the real CONNECT connect off to the FTP server's port
  43. <connectport>
  44. %FTPPORT
  45. </connectport>
  46. <server>
  47. ftp
  48. http-proxy
  49. </server>
  50. <name>
  51. FTP LIST tunneled through HTTP proxy
  52. </name>
  53. <command>
  54. ftp://ftp.1316:%FTPPORT/ -p -x %HOSTIP:%PROXYPORT
  55. </command>
  56. </client>
  57. #
  58. # Verify data after the test has been "shot"
  59. <verify>
  60. <protocol>
  61. USER anonymous
  62. PASS ftp@example.com
  63. PWD
  64. EPSV
  65. TYPE A
  66. LIST
  67. QUIT
  68. </protocol>
  69. </verify>
  70. </testcase>