Imported Upstream version 7.40.0
[platform/upstream/curl.git] / tests / data / test1320
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\r
16 smtp: sure hit me\r
17 \r
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 </features>
31  <name>
32 SMTP send tunneled through HTTP proxy
33  </name>
34 <stdin>
35 From: different\r
36 To: another\r
37 \r
38 body\r
39 </stdin>
40  <command>
41 smtp://smtp.1320:%SMTPPORT/1320 --mail-rcpt recipient@example.com --mail-from sender@example.com -T - -p -x %HOSTIP:%PROXYPORT
42 </command>
43 </client>
44
45 #
46 # Verify data after the test has been "shot"
47 <verify>
48 <strip>
49 ^User-Agent: curl/.*
50 </strip>
51 <protocol>
52 EHLO 1320\r
53 MAIL FROM:<sender@example.com>\r
54 RCPT TO:<recipient@example.com>\r
55 DATA\r
56 QUIT\r
57 </protocol>
58 <upload>
59 From: different\r
60 To: another\r
61 \r
62 body\r
63 .\r
64 </upload>
65 <proxy>
66 CONNECT smtp.1320:%SMTPPORT HTTP/1.1\r
67 Host: smtp.1320:%SMTPPORT\r
68 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\r
69 Proxy-Connection: Keep-Alive\r
70 \r
71 </proxy>
72 </verify>
73 </testcase>