113498266Sopenharmony_ci<testcase> 213498266Sopenharmony_ci<info> 313498266Sopenharmony_ci<keywords> 413498266Sopenharmony_ciFTP 513498266Sopenharmony_ciHTTPS-proxy 613498266Sopenharmony_ci</keywords> 713498266Sopenharmony_ci</info> 813498266Sopenharmony_ci 913498266Sopenharmony_ci# Server-side 1013498266Sopenharmony_ci<reply> 1113498266Sopenharmony_ci 1213498266Sopenharmony_ci# This is the HTTPS proxy response 1313498266Sopenharmony_ci<connect> 1413498266Sopenharmony_ciHTTP/1.1 200 OK 1513498266Sopenharmony_ciDate: Tue, 09 Nov 2010 14:49:00 GMT 1613498266Sopenharmony_ciServer: test-server/fake 1713498266Sopenharmony_ciContent-Type: text/html 1813498266Sopenharmony_ciFunny-head: yesyes 1913498266Sopenharmony_ciContent-Length: 0 2013498266Sopenharmony_ci 2113498266Sopenharmony_ci</connect> 2213498266Sopenharmony_ci 2313498266Sopenharmony_ci# This is the FTP server response. The Life and Adventures of Robinson Crusoe 2413498266Sopenharmony_ci<data> 2513498266Sopenharmony_ciI was born in the year 1632, in the city of York, of a good family, though not 2613498266Sopenharmony_ciof that country, myfather being a foreigner of Bremen, who settled first at 2713498266Sopenharmony_ciHull. He got a good estate by merchandise,and leaving off his trade, lived 2813498266Sopenharmony_ciafterwards at York, from whence he had married my mother, whoserelations were 2913498266Sopenharmony_cinamed Robinson, a very good family in that country, and from whom I was 3013498266Sopenharmony_cicalledRobinson Kreutznaer; but, by the usual corruption of words in England, 3113498266Sopenharmony_ciwe are now called—nay wecall ourselves and write our name—Crusoe; and so my 3213498266Sopenharmony_cicompanions always called me. 3313498266Sopenharmony_ci</data> 3413498266Sopenharmony_ci</reply> 3513498266Sopenharmony_ci 3613498266Sopenharmony_ci# Client-side 3713498266Sopenharmony_ci<client> 3813498266Sopenharmony_ci<server> 3913498266Sopenharmony_ciftp 4013498266Sopenharmony_cihttps-proxy 4113498266Sopenharmony_ci</server> 4213498266Sopenharmony_ci<name> 4313498266Sopenharmony_ciFTP through HTTPS-proxy 4413498266Sopenharmony_ci</name> 4513498266Sopenharmony_ci<command> 4613498266Sopenharmony_ci-p -x https://%HOSTIP:%HTTPSPROXYPORT ftp://ftp.site.thru.https.proxy:%FTPPORT/%TESTNUMBER --proxy-insecure 4713498266Sopenharmony_ci</command> 4813498266Sopenharmony_ci<features> 4913498266Sopenharmony_cihttp 5013498266Sopenharmony_ciproxy 5113498266Sopenharmony_ci</features> 5213498266Sopenharmony_ci</client> 5313498266Sopenharmony_ci 5413498266Sopenharmony_ci# Verify data after the test has been "shot" 5513498266Sopenharmony_ci<verify> 5613498266Sopenharmony_ci 5713498266Sopenharmony_ci# The second CONNECT will be made to the dynamic port number the FTP server 5813498266Sopenharmony_ci# opens for us, so we can't compare with a known pre-existing number! 5913498266Sopenharmony_ci<strippart> 6013498266Sopenharmony_cis/((https.proxy):(\d+))/$2:12345/ 6113498266Sopenharmony_cis/^(User-Agent: curl).*/$1/ 6213498266Sopenharmony_ci</strippart> 6313498266Sopenharmony_ci<proxy> 6413498266Sopenharmony_ciCONNECT ftp.site.thru.https.proxy:12345 HTTP/1.1 6513498266Sopenharmony_ciHost: ftp.site.thru.https.proxy:12345 6613498266Sopenharmony_ciUser-Agent: curl 6713498266Sopenharmony_ciProxy-Connection: Keep-Alive 6813498266Sopenharmony_ci 6913498266Sopenharmony_ciCONNECT ftp.site.thru.https.proxy:12345 HTTP/1.1 7013498266Sopenharmony_ciHost: ftp.site.thru.https.proxy:12345 7113498266Sopenharmony_ciUser-Agent: curl 7213498266Sopenharmony_ciProxy-Connection: Keep-Alive 7313498266Sopenharmony_ci 7413498266Sopenharmony_ci</proxy> 7513498266Sopenharmony_ci<protocol> 7613498266Sopenharmony_ciUSER anonymous 7713498266Sopenharmony_ciPASS ftp@example.com 7813498266Sopenharmony_ciPWD 7913498266Sopenharmony_ciEPSV 8013498266Sopenharmony_ciTYPE I 8113498266Sopenharmony_ciSIZE %TESTNUMBER 8213498266Sopenharmony_ciRETR %TESTNUMBER 8313498266Sopenharmony_ciQUIT 8413498266Sopenharmony_ci</protocol> 8513498266Sopenharmony_ci</verify> 8613498266Sopenharmony_ci</testcase> 87