2012-01-03 23:12:58 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
POP3
|
|
|
|
RETR
|
2012-03-24 01:31:29 +08:00
|
|
|
HTTP
|
2012-01-03 23:12:58 +08:00
|
|
|
HTTP CONNECT
|
2012-03-24 01:31:29 +08:00
|
|
|
HTTP proxy
|
2012-01-03 23:12:58 +08:00
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
2013-03-16 00:28:32 +08:00
|
|
|
|
|
|
|
<connect>
|
|
|
|
HTTP/1.1 200 Mighty fine indeed
|
|
|
|
pop3: sure hit me
|
|
|
|
|
|
|
|
</connect>
|
|
|
|
|
2012-01-03 23:12:58 +08:00
|
|
|
# When doing LIST, we get the default list output hard-coded in the test
|
|
|
|
# FTP server
|
|
|
|
<data>
|
|
|
|
From: me@somewhere
|
|
|
|
To: fake@nowhere
|
|
|
|
|
|
|
|
body
|
|
|
|
|
|
|
|
--
|
2012-02-22 05:24:44 +08:00
|
|
|
yours sincerely
|
2012-01-03 23:12:58 +08:00
|
|
|
</data>
|
|
|
|
|
|
|
|
<datacheck>
|
|
|
|
From: me@somewhere
|
|
|
|
To: fake@nowhere
|
|
|
|
|
|
|
|
body
|
|
|
|
|
|
|
|
--
|
2012-02-22 05:24:44 +08:00
|
|
|
yours sincerely
|
2012-01-03 23:12:58 +08:00
|
|
|
</datacheck>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
pop3
|
|
|
|
http-proxy
|
|
|
|
</server>
|
2014-01-25 19:47:04 +08:00
|
|
|
<features>
|
|
|
|
http
|
|
|
|
</features>
|
2012-01-03 23:12:58 +08:00
|
|
|
<name>
|
|
|
|
POP3 fetch tunneled through HTTP proxy
|
|
|
|
</name>
|
|
|
|
<command>
|
2013-03-16 00:28:32 +08:00
|
|
|
pop3://pop.1319:%POP3PORT/1319 -p -x %HOSTIP:%PROXYPORT -u user:secret
|
2012-01-03 23:12:58 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<strip>
|
|
|
|
^User-Agent:
|
|
|
|
</strip>
|
|
|
|
<protocol>
|
2012-06-05 04:34:06 +08:00
|
|
|
CAPA
|
2012-01-03 23:12:58 +08:00
|
|
|
USER user
|
|
|
|
PASS secret
|
|
|
|
RETR 1319
|
|
|
|
QUIT
|
|
|
|
</protocol>
|
|
|
|
<proxy>
|
2013-03-16 00:28:32 +08:00
|
|
|
CONNECT pop.1319:%POP3PORT HTTP/1.1
|
|
|
|
Host: pop.1319:%POP3PORT
|
2012-01-03 23:12:58 +08:00
|
|
|
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
|
2016-08-16 14:36:04 +08:00
|
|
|
Proxy-Connection: Keep-Alive
|
2012-01-03 23:12:58 +08:00
|
|
|
|
|
|
|
</proxy>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|