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 %TESTNUMBER, 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
3513498266Sopenharmony_ci<data2>
3613498266Sopenharmony_ciI had two elder brothers, one of whom was lieutenant-colonel to an
3713498266Sopenharmony_ciEnglish regiment of foot inFlanders, formerly commanded by the famous Colonel
3813498266Sopenharmony_ciLockhart, and was killed at the battle nearDunkirk against the Spaniards.
3913498266Sopenharmony_ciWhat became of my second brother I never knew, any more thanmy father or
4013498266Sopenharmony_cimother knew what became of me.
4113498266Sopenharmony_ci</data2>
4213498266Sopenharmony_ci
4313498266Sopenharmony_ci</reply>
4413498266Sopenharmony_ci
4513498266Sopenharmony_ci# Client-side
4613498266Sopenharmony_ci<client>
4713498266Sopenharmony_ci<server>
4813498266Sopenharmony_ciftp
4913498266Sopenharmony_cihttps-proxy
5013498266Sopenharmony_ci</server>
5113498266Sopenharmony_ci<name>
5213498266Sopenharmony_ciFTP through HTTPS-proxy, with connection reuse
5313498266Sopenharmony_ci</name>
5413498266Sopenharmony_ci<command>
5513498266Sopenharmony_ci-p -x https://%HOSTIP:%HTTPSPROXYPORT ftp://ftp.site.thru.https.proxy:%FTPPORT/%TESTNUMBER --proxy-insecure ftp://ftp.site.thru.https.proxy:%FTPPORT/%TESTNUMBER0002
5613498266Sopenharmony_ci</command>
5713498266Sopenharmony_ci<features>
5813498266Sopenharmony_cihttp
5913498266Sopenharmony_ciproxy
6013498266Sopenharmony_ci</features>
6113498266Sopenharmony_ci</client>
6213498266Sopenharmony_ci
6313498266Sopenharmony_ci# Verify data after the test has been "shot"
6413498266Sopenharmony_ci<verify>
6513498266Sopenharmony_ci
6613498266Sopenharmony_ci# The second and third CONNECT will be made to the dynamic port number the FTP
6713498266Sopenharmony_ci# server opens for us, so we can't compare with known pre-existing numbers!
6813498266Sopenharmony_ci
6913498266Sopenharmony_ci<strippart>
7013498266Sopenharmony_cis/((https.proxy):(\d+))/$2:12345/
7113498266Sopenharmony_cis/^(User-Agent: curl).*/$1/
7213498266Sopenharmony_ci</strippart>
7313498266Sopenharmony_ci<proxy>
7413498266Sopenharmony_ciCONNECT ftp.site.thru.https.proxy:12345 HTTP/1.1
7513498266Sopenharmony_ciHost: ftp.site.thru.https.proxy:12345
7613498266Sopenharmony_ciUser-Agent: curl
7713498266Sopenharmony_ciProxy-Connection: Keep-Alive
7813498266Sopenharmony_ci
7913498266Sopenharmony_ciCONNECT ftp.site.thru.https.proxy:12345 HTTP/1.1
8013498266Sopenharmony_ciHost: ftp.site.thru.https.proxy:12345
8113498266Sopenharmony_ciUser-Agent: curl
8213498266Sopenharmony_ciProxy-Connection: Keep-Alive
8313498266Sopenharmony_ci
8413498266Sopenharmony_ciCONNECT ftp.site.thru.https.proxy:12345 HTTP/1.1
8513498266Sopenharmony_ciHost: ftp.site.thru.https.proxy:12345
8613498266Sopenharmony_ciUser-Agent: curl
8713498266Sopenharmony_ciProxy-Connection: Keep-Alive
8813498266Sopenharmony_ci
8913498266Sopenharmony_ci</proxy>
9013498266Sopenharmony_ci<protocol>
9113498266Sopenharmony_ciUSER anonymous
9213498266Sopenharmony_ciPASS ftp@example.com
9313498266Sopenharmony_ciPWD
9413498266Sopenharmony_ciEPSV
9513498266Sopenharmony_ciTYPE I
9613498266Sopenharmony_ciSIZE %TESTNUMBER
9713498266Sopenharmony_ciRETR %TESTNUMBER
9813498266Sopenharmony_ciEPSV
9913498266Sopenharmony_ciSIZE %TESTNUMBER0002
10013498266Sopenharmony_ciRETR %TESTNUMBER0002
10113498266Sopenharmony_ciQUIT
10213498266Sopenharmony_ci</protocol>
10313498266Sopenharmony_ci</verify>
10413498266Sopenharmony_ci</testcase>
105