xref: /aosp_15_r20/external/curl/tests/data/test1320 (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker<testcase>
2*6236dae4SAndroid Build Coastguard Worker<info>
3*6236dae4SAndroid Build Coastguard Worker<keywords>
4*6236dae4SAndroid Build Coastguard WorkerSMTP
5*6236dae4SAndroid Build Coastguard WorkerHTTP
6*6236dae4SAndroid Build Coastguard WorkerHTTP CONNECT
7*6236dae4SAndroid Build Coastguard WorkerHTTP proxy
8*6236dae4SAndroid Build Coastguard Worker</keywords>
9*6236dae4SAndroid Build Coastguard Worker</info>
10*6236dae4SAndroid Build Coastguard Worker
11*6236dae4SAndroid Build Coastguard Worker#
12*6236dae4SAndroid Build Coastguard Worker# Server-side
13*6236dae4SAndroid Build Coastguard Worker<reply>
14*6236dae4SAndroid Build Coastguard Worker<connect>
15*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 Mighty fine indeed
16*6236dae4SAndroid Build Coastguard Workersmtp: sure hit me
17*6236dae4SAndroid Build Coastguard Worker
18*6236dae4SAndroid Build Coastguard Worker</connect>
19*6236dae4SAndroid Build Coastguard Worker</reply>
20*6236dae4SAndroid Build Coastguard Worker
21*6236dae4SAndroid Build Coastguard Worker#
22*6236dae4SAndroid Build Coastguard Worker# Client-side
23*6236dae4SAndroid Build Coastguard Worker<client>
24*6236dae4SAndroid Build Coastguard Worker<server>
25*6236dae4SAndroid Build Coastguard Workersmtp
26*6236dae4SAndroid Build Coastguard Workerhttp-proxy
27*6236dae4SAndroid Build Coastguard Worker</server>
28*6236dae4SAndroid Build Coastguard Worker<features>
29*6236dae4SAndroid Build Coastguard Workerhttp
30*6236dae4SAndroid Build Coastguard Workerproxy
31*6236dae4SAndroid Build Coastguard Worker</features>
32*6236dae4SAndroid Build Coastguard Worker<name>
33*6236dae4SAndroid Build Coastguard WorkerSMTP send tunneled through HTTP proxy
34*6236dae4SAndroid Build Coastguard Worker</name>
35*6236dae4SAndroid Build Coastguard Worker<stdin>
36*6236dae4SAndroid Build Coastguard WorkerFrom: different
37*6236dae4SAndroid Build Coastguard WorkerTo: another
38*6236dae4SAndroid Build Coastguard Worker
39*6236dae4SAndroid Build Coastguard Workerbody
40*6236dae4SAndroid Build Coastguard Worker</stdin>
41*6236dae4SAndroid Build Coastguard Worker<command>
42*6236dae4SAndroid Build Coastguard Workersmtp://smtp.%TESTNUMBER:%SMTPPORT/%TESTNUMBER --mail-rcpt [email protected] --mail-from [email protected] -T - -p -x %HOSTIP:%PROXYPORT
43*6236dae4SAndroid Build Coastguard Worker</command>
44*6236dae4SAndroid Build Coastguard Worker</client>
45*6236dae4SAndroid Build Coastguard Worker
46*6236dae4SAndroid Build Coastguard Worker#
47*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot"
48*6236dae4SAndroid Build Coastguard Worker<verify>
49*6236dae4SAndroid Build Coastguard Worker<protocol>
50*6236dae4SAndroid Build Coastguard WorkerEHLO %TESTNUMBER
51*6236dae4SAndroid Build Coastguard WorkerMAIL FROM:<[email protected]>
52*6236dae4SAndroid Build Coastguard WorkerRCPT TO:<[email protected]>
53*6236dae4SAndroid Build Coastguard WorkerDATA
54*6236dae4SAndroid Build Coastguard WorkerQUIT
55*6236dae4SAndroid Build Coastguard Worker</protocol>
56*6236dae4SAndroid Build Coastguard Worker<upload>
57*6236dae4SAndroid Build Coastguard WorkerFrom: different
58*6236dae4SAndroid Build Coastguard WorkerTo: another
59*6236dae4SAndroid Build Coastguard Worker
60*6236dae4SAndroid Build Coastguard Workerbody
61*6236dae4SAndroid Build Coastguard Worker.
62*6236dae4SAndroid Build Coastguard Worker</upload>
63*6236dae4SAndroid Build Coastguard Worker<proxy>
64*6236dae4SAndroid Build Coastguard WorkerCONNECT smtp.%TESTNUMBER:%SMTPPORT HTTP/1.1
65*6236dae4SAndroid Build Coastguard WorkerHost: smtp.%TESTNUMBER:%SMTPPORT
66*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION
67*6236dae4SAndroid Build Coastguard WorkerProxy-Connection: Keep-Alive
68*6236dae4SAndroid Build Coastguard Worker
69*6236dae4SAndroid Build Coastguard Worker</proxy>
70*6236dae4SAndroid Build Coastguard Worker</verify>
71*6236dae4SAndroid Build Coastguard Worker</testcase>
72