xref: /aosp_15_r20/external/curl/tests/data/test1631 (revision 6236dae45794135f37c4eb022389c904c8b0090d)
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 1632, 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</reply>
35*6236dae4SAndroid Build Coastguard Worker
36*6236dae4SAndroid Build Coastguard Worker# Client-side
37*6236dae4SAndroid Build Coastguard Worker<client>
38*6236dae4SAndroid Build Coastguard Worker<server>
39*6236dae4SAndroid Build Coastguard Workerftp
40*6236dae4SAndroid Build Coastguard Workerhttps-proxy
41*6236dae4SAndroid Build Coastguard Worker</server>
42*6236dae4SAndroid Build Coastguard Worker<name>
43*6236dae4SAndroid Build Coastguard WorkerFTP through HTTPS-proxy
44*6236dae4SAndroid Build Coastguard Worker</name>
45*6236dae4SAndroid Build Coastguard Worker<command>
46*6236dae4SAndroid Build Coastguard Worker-p -x https://%HOSTIP:%HTTPSPROXYPORT ftp://ftp.site.thru.https.proxy:%FTPPORT/%TESTNUMBER --proxy-insecure
47*6236dae4SAndroid Build Coastguard Worker</command>
48*6236dae4SAndroid Build Coastguard Worker<features>
49*6236dae4SAndroid Build Coastguard Workerhttp
50*6236dae4SAndroid Build Coastguard Workerproxy
51*6236dae4SAndroid Build Coastguard Worker</features>
52*6236dae4SAndroid Build Coastguard Worker</client>
53*6236dae4SAndroid Build Coastguard Worker
54*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot"
55*6236dae4SAndroid Build Coastguard Worker<verify>
56*6236dae4SAndroid Build Coastguard Worker<strip>
57*6236dae4SAndroid Build Coastguard WorkerQUIT
58*6236dae4SAndroid Build Coastguard Worker</strip>
59*6236dae4SAndroid Build Coastguard Worker
60*6236dae4SAndroid Build Coastguard Worker# The second CONNECT will be made to the dynamic port number the FTP server
61*6236dae4SAndroid Build Coastguard Worker# opens for us, so we can't compare with a known pre-existing number!
62*6236dae4SAndroid Build Coastguard Worker<strippart>
63*6236dae4SAndroid Build Coastguard Workers/((https.proxy):(\d+))/$2:12345/
64*6236dae4SAndroid Build Coastguard Workers/^(User-Agent: curl).*/$1/
65*6236dae4SAndroid Build Coastguard Worker</strippart>
66*6236dae4SAndroid Build Coastguard Worker<proxy>
67*6236dae4SAndroid Build Coastguard WorkerCONNECT ftp.site.thru.https.proxy:12345 HTTP/1.1
68*6236dae4SAndroid Build Coastguard WorkerHost: ftp.site.thru.https.proxy:12345
69*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl
70*6236dae4SAndroid Build Coastguard WorkerProxy-Connection: Keep-Alive
71*6236dae4SAndroid Build Coastguard Worker
72*6236dae4SAndroid Build Coastguard WorkerCONNECT ftp.site.thru.https.proxy:12345 HTTP/1.1
73*6236dae4SAndroid Build Coastguard WorkerHost: ftp.site.thru.https.proxy:12345
74*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl
75*6236dae4SAndroid Build Coastguard WorkerProxy-Connection: Keep-Alive
76*6236dae4SAndroid Build Coastguard Worker
77*6236dae4SAndroid Build Coastguard Worker</proxy>
78*6236dae4SAndroid Build Coastguard Worker<protocol>
79*6236dae4SAndroid Build Coastguard WorkerUSER anonymous
80*6236dae4SAndroid Build Coastguard WorkerPASS [email protected]
81*6236dae4SAndroid Build Coastguard WorkerPWD
82*6236dae4SAndroid Build Coastguard WorkerEPSV
83*6236dae4SAndroid Build Coastguard WorkerTYPE I
84*6236dae4SAndroid Build Coastguard WorkerSIZE %TESTNUMBER
85*6236dae4SAndroid Build Coastguard WorkerRETR %TESTNUMBER
86*6236dae4SAndroid Build Coastguard WorkerQUIT
87*6236dae4SAndroid Build Coastguard Worker</protocol>
88*6236dae4SAndroid Build Coastguard Worker</verify>
89*6236dae4SAndroid Build Coastguard Worker</testcase>
90