test1631 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. HTTPS-proxy
  6. </keywords>
  7. </info>
  8. # Server-side
  9. <reply>
  10. # This is the HTTPS proxy response
  11. <connect>
  12. HTTP/1.1 200 OK
  13. Date: Tue, 09 Nov 2010 14:49:00 GMT
  14. Server: test-server/fake
  15. Content-Type: text/html
  16. Funny-head: yesyes
  17. Content-Length: 0
  18. </connect>
  19. # This is the FTP server response. The Life and Adventures of Robinson Crusoe
  20. <data>
  21. I was born in the year 1632, in the city of York, of a good family, though not
  22. of that country, myfather being a foreigner of Bremen, who settled first at
  23. Hull. He got a good estate by merchandise,and leaving off his trade, lived
  24. afterwards at York, from whence he had married my mother, whoserelations were
  25. named Robinson, a very good family in that country, and from whom I was
  26. calledRobinson Kreutznaer; but, by the usual corruption of words in England,
  27. we are now called—nay wecall ourselves and write our name—Crusoe; and so my
  28. companions always called me.
  29. </data>
  30. </reply>
  31. # Client-side
  32. <client>
  33. <server>
  34. ftp
  35. https-proxy
  36. </server>
  37. <name>
  38. FTP through HTTPS-proxy
  39. </name>
  40. <command>
  41. -p -x https://%HOSTIP:%HTTPSPROXYPORT ftp://ftp.site.thru.https.proxy:%FTPPORT/%TESTNUMBER --proxy-insecure
  42. </command>
  43. <features>
  44. http
  45. proxy
  46. </features>
  47. </client>
  48. # Verify data after the test has been "shot"
  49. <verify>
  50. # The second CONNECT will be made to the dynamic port number the FTP server
  51. # opens for us, so we can't compare with a known pre-existing number!
  52. <strippart>
  53. s/((https.proxy):(\d+))/$2:12345/
  54. s/^(User-Agent: curl).*/$1/
  55. </strippart>
  56. <proxy>
  57. CONNECT ftp.site.thru.https.proxy:12345 HTTP/1.1
  58. Host: ftp.site.thru.https.proxy:12345
  59. User-Agent: curl
  60. Proxy-Connection: Keep-Alive
  61. CONNECT ftp.site.thru.https.proxy:12345 HTTP/1.1
  62. Host: ftp.site.thru.https.proxy:12345
  63. User-Agent: curl
  64. Proxy-Connection: Keep-Alive
  65. </proxy>
  66. <protocol>
  67. USER anonymous
  68. PASS ftp@example.com
  69. PWD
  70. EPSV
  71. TYPE I
  72. SIZE %TESTNUMBER
  73. RETR %TESTNUMBER
  74. QUIT
  75. </protocol>
  76. </verify>
  77. </testcase>