1*6236dae4SAndroid Build Coastguard Worker<testcase> 2*6236dae4SAndroid Build Coastguard Worker<info> 3*6236dae4SAndroid Build Coastguard Worker<keywords> 4*6236dae4SAndroid Build Coastguard WorkerFTP 5*6236dae4SAndroid Build Coastguard WorkerHTTPS-proxy 6*6236dae4SAndroid Build Coastguard Worker</keywords> 7*6236dae4SAndroid Build Coastguard Worker</info> 8*6236dae4SAndroid Build Coastguard Worker 9*6236dae4SAndroid Build Coastguard Worker# Server-side 10*6236dae4SAndroid Build Coastguard Worker<reply> 11*6236dae4SAndroid Build Coastguard Worker 12*6236dae4SAndroid Build Coastguard Worker# This is the HTTPS proxy response 13*6236dae4SAndroid Build Coastguard Worker<connect> 14*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK 15*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 09 Nov 2010 14:49:00 GMT 16*6236dae4SAndroid Build Coastguard WorkerServer: test-server/fake 17*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html 18*6236dae4SAndroid Build Coastguard WorkerFunny-head: yesyes 19*6236dae4SAndroid Build Coastguard WorkerContent-Length: 0 20*6236dae4SAndroid Build Coastguard Worker 21*6236dae4SAndroid Build Coastguard Worker</connect> 22*6236dae4SAndroid Build Coastguard Worker 23*6236dae4SAndroid Build Coastguard Worker# This is the FTP server response. The Life and Adventures of Robinson Crusoe 24*6236dae4SAndroid Build Coastguard Worker<data> 25*6236dae4SAndroid Build Coastguard WorkerI was born in the year %TESTNUMBER, in the city of York, of a good family, though not 26*6236dae4SAndroid Build Coastguard Workerof that country, myfather being a foreigner of Bremen, who settled first at 27*6236dae4SAndroid Build Coastguard WorkerHull. He got a good estate by merchandise,and leaving off his trade, lived 28*6236dae4SAndroid Build Coastguard Workerafterwards at York, from whence he had married my mother, whoserelations were 29*6236dae4SAndroid Build Coastguard Workernamed Robinson, a very good family in that country, and from whom I was 30*6236dae4SAndroid Build Coastguard WorkercalledRobinson Kreutznaer; but, by the usual corruption of words in England, 31*6236dae4SAndroid Build Coastguard Workerwe are now called—nay wecall ourselves and write our name—Crusoe; and so my 32*6236dae4SAndroid Build Coastguard Workercompanions always called me. 33*6236dae4SAndroid Build Coastguard Worker</data> 34*6236dae4SAndroid Build Coastguard Worker 35*6236dae4SAndroid Build Coastguard Worker<data2> 36*6236dae4SAndroid Build Coastguard WorkerI had two elder brothers, one of whom was lieutenant-colonel to an 37*6236dae4SAndroid Build Coastguard WorkerEnglish regiment of foot inFlanders, formerly commanded by the famous Colonel 38*6236dae4SAndroid Build Coastguard WorkerLockhart, and was killed at the battle nearDunkirk against the Spaniards. 39*6236dae4SAndroid Build Coastguard WorkerWhat became of my second brother I never knew, any more thanmy father or 40*6236dae4SAndroid Build Coastguard Workermother knew what became of me. 41*6236dae4SAndroid Build Coastguard Worker</data2> 42*6236dae4SAndroid Build Coastguard Worker 43*6236dae4SAndroid Build Coastguard Worker</reply> 44*6236dae4SAndroid Build Coastguard Worker 45*6236dae4SAndroid Build Coastguard Worker# Client-side 46*6236dae4SAndroid Build Coastguard Worker<client> 47*6236dae4SAndroid Build Coastguard Worker<server> 48*6236dae4SAndroid Build Coastguard Workerftp 49*6236dae4SAndroid Build Coastguard Workerhttps-proxy 50*6236dae4SAndroid Build Coastguard Worker</server> 51*6236dae4SAndroid Build Coastguard Worker<name> 52*6236dae4SAndroid Build Coastguard WorkerFTP through HTTPS-proxy, with connection reuse 53*6236dae4SAndroid Build Coastguard Worker</name> 54*6236dae4SAndroid Build Coastguard Worker<command> 55*6236dae4SAndroid Build Coastguard Worker-p -x https://%HOSTIP:%HTTPSPROXYPORT ftp://ftp.site.thru.https.proxy:%FTPPORT/%TESTNUMBER --proxy-insecure ftp://ftp.site.thru.https.proxy:%FTPPORT/%TESTNUMBER0002 56*6236dae4SAndroid Build Coastguard Worker</command> 57*6236dae4SAndroid Build Coastguard Worker<features> 58*6236dae4SAndroid Build Coastguard Workerhttp 59*6236dae4SAndroid Build Coastguard Workerproxy 60*6236dae4SAndroid Build Coastguard Worker</features> 61*6236dae4SAndroid Build Coastguard Worker</client> 62*6236dae4SAndroid Build Coastguard Worker 63*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot" 64*6236dae4SAndroid Build Coastguard Worker<verify> 65*6236dae4SAndroid Build Coastguard Worker<strip> 66*6236dae4SAndroid Build Coastguard WorkerQUIT 67*6236dae4SAndroid Build Coastguard Worker</strip> 68*6236dae4SAndroid Build Coastguard Worker 69*6236dae4SAndroid Build Coastguard Worker# The second and third CONNECT will be made to the dynamic port number the FTP 70*6236dae4SAndroid Build Coastguard Worker# server opens for us, so we can't compare with known pre-existing numbers! 71*6236dae4SAndroid Build Coastguard Worker 72*6236dae4SAndroid Build Coastguard Worker<strippart> 73*6236dae4SAndroid Build Coastguard Workers/((https.proxy):(\d+))/$2:12345/ 74*6236dae4SAndroid Build Coastguard Workers/^(User-Agent: curl).*/$1/ 75*6236dae4SAndroid Build Coastguard Worker</strippart> 76*6236dae4SAndroid Build Coastguard Worker<proxy> 77*6236dae4SAndroid Build Coastguard WorkerCONNECT ftp.site.thru.https.proxy:12345 HTTP/1.1 78*6236dae4SAndroid Build Coastguard WorkerHost: ftp.site.thru.https.proxy:12345 79*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl 80*6236dae4SAndroid Build Coastguard WorkerProxy-Connection: Keep-Alive 81*6236dae4SAndroid Build Coastguard Worker 82*6236dae4SAndroid Build Coastguard WorkerCONNECT ftp.site.thru.https.proxy:12345 HTTP/1.1 83*6236dae4SAndroid Build Coastguard WorkerHost: ftp.site.thru.https.proxy:12345 84*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl 85*6236dae4SAndroid Build Coastguard WorkerProxy-Connection: Keep-Alive 86*6236dae4SAndroid Build Coastguard Worker 87*6236dae4SAndroid Build Coastguard WorkerCONNECT ftp.site.thru.https.proxy:12345 HTTP/1.1 88*6236dae4SAndroid Build Coastguard WorkerHost: ftp.site.thru.https.proxy:12345 89*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl 90*6236dae4SAndroid Build Coastguard WorkerProxy-Connection: Keep-Alive 91*6236dae4SAndroid Build Coastguard Worker 92*6236dae4SAndroid Build Coastguard Worker</proxy> 93*6236dae4SAndroid Build Coastguard Worker<protocol> 94*6236dae4SAndroid Build Coastguard WorkerUSER anonymous 95*6236dae4SAndroid Build Coastguard WorkerPASS [email protected] 96*6236dae4SAndroid Build Coastguard WorkerPWD 97*6236dae4SAndroid Build Coastguard WorkerEPSV 98*6236dae4SAndroid Build Coastguard WorkerTYPE I 99*6236dae4SAndroid Build Coastguard WorkerSIZE %TESTNUMBER 100*6236dae4SAndroid Build Coastguard WorkerRETR %TESTNUMBER 101*6236dae4SAndroid Build Coastguard WorkerEPSV 102*6236dae4SAndroid Build Coastguard WorkerSIZE %TESTNUMBER0002 103*6236dae4SAndroid Build Coastguard WorkerRETR %TESTNUMBER0002 104*6236dae4SAndroid Build Coastguard WorkerQUIT 105*6236dae4SAndroid Build Coastguard Worker</protocol> 106*6236dae4SAndroid Build Coastguard Worker</verify> 107*6236dae4SAndroid Build Coastguard Worker</testcase> 108