lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | POP3 |
| 5 | RETR |
| 6 | HTTP |
| 7 | HTTP CONNECT |
| 8 | HTTP proxy |
| 9 | </keywords> |
| 10 | </info> |
| 11 | # |
| 12 | # Server-side |
| 13 | <reply> |
| 14 | |
| 15 | <connect> |
| 16 | HTTP/1.1 200 Mighty fine indeed
|
| 17 | pop3: sure hit me
|
| 18 |
|
| 19 | </connect> |
| 20 | |
| 21 | # When doing LIST, we get the default list output hard-coded in the test |
| 22 | # FTP server |
| 23 | <data> |
| 24 | From: me@somewhere |
| 25 | To: fake@nowhere |
| 26 | |
| 27 | body |
| 28 | |
| 29 | -- |
| 30 | yours sincerely
|
| 31 | </data> |
| 32 | |
| 33 | <datacheck> |
| 34 | HTTP/1.1 200 Mighty fine indeed
|
| 35 | pop3: sure hit me
|
| 36 |
|
| 37 | From: me@somewhere |
| 38 | To: fake@nowhere |
| 39 | |
| 40 | body |
| 41 | |
| 42 | -- |
| 43 | yours sincerely
|
| 44 | </datacheck> |
| 45 | </reply> |
| 46 | |
| 47 | # |
| 48 | # Client-side |
| 49 | <client> |
| 50 | <server> |
| 51 | pop3 |
| 52 | http-proxy |
| 53 | </server> |
| 54 | <features> |
| 55 | http |
| 56 | </features> |
| 57 | <name> |
| 58 | POP3 fetch tunneled through HTTP proxy |
| 59 | </name> |
| 60 | <command> |
| 61 | pop3://pop.1319:%POP3PORT/1319 -p -x %HOSTIP:%PROXYPORT -u user:secret |
| 62 | </command> |
| 63 | </client> |
| 64 | |
| 65 | # |
| 66 | # Verify data after the test has been "shot" |
| 67 | <verify> |
| 68 | <strip> |
| 69 | ^User-Agent: |
| 70 | </strip> |
| 71 | <protocol> |
| 72 | CAPA
|
| 73 | USER user
|
| 74 | PASS secret
|
| 75 | RETR 1319
|
| 76 | QUIT
|
| 77 | </protocol> |
| 78 | <proxy> |
| 79 | CONNECT pop.1319:%POP3PORT HTTP/1.1
|
| 80 | Host: pop.1319:%POP3PORT
|
| 81 | 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
|
| 82 | Proxy-Connection: Keep-Alive
|
| 83 |
|
| 84 | </proxy> |
| 85 | </verify> |
| 86 | </testcase> |