1<testcase> 2<info> 3<keywords> 4SMTP 5HTTP 6HTTP CONNECT 7HTTP proxy 8</keywords> 9</info> 10 11# 12# Server-side 13<reply> 14<connect> 15HTTP/1.1 200 Mighty fine indeed 16smtp: sure hit me 17 18</connect> 19</reply> 20 21# 22# Client-side 23<client> 24<server> 25smtp 26http-proxy 27</server> 28<features> 29http 30proxy 31</features> 32<name> 33SMTP send tunneled through HTTP proxy 34</name> 35<stdin> 36From: different 37To: another 38 39body 40</stdin> 41<command> 42smtp://smtp.%TESTNUMBER:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -T - -p -x %HOSTIP:%PROXYPORT 43</command> 44</client> 45 46# 47# Verify data after the test has been "shot" 48<verify> 49<protocol> 50EHLO %TESTNUMBER 51MAIL FROM:<sender@example.com> 52RCPT TO:<recipient@example.com> 53DATA 54QUIT 55</protocol> 56<upload> 57From: different 58To: another 59 60body 61. 62</upload> 63<proxy> 64CONNECT smtp.%TESTNUMBER:%SMTPPORT HTTP/1.1 65Host: smtp.%TESTNUMBER:%SMTPPORT 66User-Agent: curl/%VERSION 67Proxy-Connection: Keep-Alive 68 69</proxy> 70</verify> 71</testcase> 72