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: Tue, 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/%TESTNUMBER --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<strip> 57QUIT 58</strip> 59 60# The second CONNECT will be made to the dynamic port number the FTP server 61# opens for us, so we can't compare with a known pre-existing number! 62<strippart> 63s/((https.proxy):(\d+))/$2:12345/ 64s/^(User-Agent: curl).*/$1/ 65</strippart> 66<proxy> 67CONNECT ftp.site.thru.https.proxy:12345 HTTP/1.1 68Host: ftp.site.thru.https.proxy:12345 69User-Agent: curl 70Proxy-Connection: Keep-Alive 71 72CONNECT ftp.site.thru.https.proxy:12345 HTTP/1.1 73Host: ftp.site.thru.https.proxy:12345 74User-Agent: curl 75Proxy-Connection: Keep-Alive 76 77</proxy> 78<protocol> 79USER anonymous 80PASS ftp@example.com 81PWD 82EPSV 83TYPE I 84SIZE %TESTNUMBER 85RETR %TESTNUMBER 86QUIT 87</protocol> 88</verify> 89</testcase> 90