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
|
2019-10-15 04:29:19 +08:00
|
|
|
proxy
|
2014-01-25 19:47:04 +08:00
|
|
|
</features>
|
2012-01-03 23:12:58 +08:00
|
|
|
<name>
|
|
|
|
POP3 fetch tunneled through HTTP proxy
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
pop3://pop.%TESTNUMBER:%POP3PORT/%TESTNUMBER -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>
|
|
|
|
<protocol>
|
2012-06-05 04:34:06 +08:00
|
|
|
CAPA
|
2012-01-03 23:12:58 +08:00
|
|
|
USER user
|
|
|
|
PASS secret
|
2021-03-13 00:38:26 +08:00
|
|
|
RETR %TESTNUMBER
|
2012-01-03 23:12:58 +08:00
|
|
|
QUIT
|
|
|
|
</protocol>
|
|
|
|
<proxy>
|
2021-03-13 00:38:26 +08:00
|
|
|
CONNECT pop.%TESTNUMBER:%POP3PORT HTTP/1.1
|
|
|
|
Host: pop.%TESTNUMBER:%POP3PORT
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2016-08-16 14:36:04 +08:00
|
|
|
Proxy-Connection: Keep-Alive
|
2012-01-03 23:12:58 +08:00
|
|
|
|
|
|
|
</proxy>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|