quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

test1320 (979B)


      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.%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>
     50 EHLO %TESTNUMBER
     51 MAIL FROM:<sender@example.com>
     52 RCPT TO:<recipient@example.com>
     53 DATA
     54 QUIT
     55 </protocol>
     56 <upload>
     57 From: different
     58 To: another
     59 
     60 body
     61 .
     62 </upload>
     63 <proxy>
     64 CONNECT smtp.%TESTNUMBER:%SMTPPORT HTTP/1.1
     65 Host: smtp.%TESTNUMBER:%SMTPPORT
     66 User-Agent: curl/%VERSION
     67 Proxy-Connection: Keep-Alive
     68 
     69 </proxy>
     70 </verify>
     71 </testcase>