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