test1316 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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 mode="text">
  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. <features>
  51. http
  52. </features>
  53. <name>
  54. FTP LIST tunneled through HTTP proxy
  55. </name>
  56. <command>
  57. ftp://ftp.1316:%FTPPORT/ -p -x %HOSTIP:%PROXYPORT
  58. </command>
  59. </client>
  60. #
  61. # Verify data after the test has been "shot"
  62. <verify>
  63. <protocol>
  64. USER anonymous
  65. PASS ftp@example.com
  66. PWD
  67. EPSV
  68. TYPE A
  69. LIST
  70. QUIT
  71. </protocol>
  72. </verify>
  73. </testcase>