Debian Codegraph @

deps/curl/tests/data/test1320

raw
1 <testcase>
2 <info>
3 <keywords>
4 SMTP
5 HTTP
6 HTTP CONNECT
7 HTTP proxy
8 </keywords>
9 </info>
10
11 #
12 # Server-side
13 <reply>
14 <connect>
15 HTTP/1.1 200 Mighty fine indeed
16 smtp: sure hit me
17
18 </connect>
19 </reply>
20
21 #
22 # Client-side
23 <client>
24 <server>
25 smtp
26 http-proxy
27 </server>
28 <features>
29 http
30 proxy
31 </features>
32 <name>
33 SMTP send tunneled through HTTP proxy
34 </name>
35 <stdin>
36 From: different
37 To: another
38
39 body
40 </stdin>
41 <command>
42 smtp://smtp.1320:%SMTPPORT/1320 --mail-rcpt [email protected] --mail-from [email protected] -T - -p -x %HOSTIP:%PROXYPORT
43 </command>
44 </client>
45
46 #
47 # Verify data after the test has been "shot"
48 <verify>
49 <strip>
50 ^User-Agent: curl/.*
51 </strip>
52 <protocol>
53 EHLO 1320
54 MAIL FROM:<[email protected]>
55 RCPT TO:<[email protected]>
56 DATA
57 QUIT
58 </protocol>
59 <upload>
60 From: different
61 To: another
62
63 body
64 .
65 </upload>
66 <proxy>
67 CONNECT smtp.1320:%SMTPPORT HTTP/1.1
68 Host: smtp.1320:%SMTPPORT
69 User-Agent: curl/7.24.0-DEV (i686-pc-linux-gnu) libcurl/7.24.0-DEV OpenSSL/1.0.0e zlib/1.2.3.4 c-ares/1.7.6-DEV libidn/1.23 libssh2/1.4.0_DEV librtmp/2.2e
70 Proxy-Connection: Keep-Alive
71
72 </proxy>
73 </verify>
74 </testcase>