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