2009-04-17 08:48:24 -04:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
FTP
|
|
|
|
HTTP proxy
|
|
|
|
CURLOPT_PROXY
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data nocheck="yes">
|
2014-02-01 07:47:00 -05:00
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 09:00:03 -05:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2014-02-01 07:47:00 -05:00
|
|
|
Content-Length: 6
|
|
|
|
|
2009-04-17 08:48:24 -04:00
|
|
|
hello
|
|
|
|
</data>
|
|
|
|
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<features>
|
|
|
|
http
|
|
|
|
ftp
|
2019-10-14 16:29:19 -04:00
|
|
|
proxy
|
2009-04-17 08:48:24 -04:00
|
|
|
</features>
|
|
|
|
<name>
|
|
|
|
FTP RETR twice over proxy confirming persistent connection
|
|
|
|
</name>
|
|
|
|
|
|
|
|
<command>
|
|
|
|
ftp://ftp-site/moo/1098 ftp://ftp-site/moo/1098 --proxy http://%HOSTIP:%HTTPPORT
|
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
|
|
|
GET ftp://ftp-site/moo/1098 HTTP/1.1
|
|
|
|
Host: ftp-site:21
|
2020-10-02 07:45:24 -04:00
|
|
|
User-Agent: curl/%VERSION
|
2009-04-17 08:48:24 -04:00
|
|
|
Accept: */*
|
2016-08-16 02:36:04 -04:00
|
|
|
Proxy-Connection: Keep-Alive
|
2009-04-17 08:48:24 -04:00
|
|
|
|
|
|
|
GET ftp://ftp-site/moo/1098 HTTP/1.1
|
|
|
|
Host: ftp-site:21
|
2020-10-02 07:45:24 -04:00
|
|
|
User-Agent: curl/%VERSION
|
2009-04-17 08:48:24 -04:00
|
|
|
Accept: */*
|
2016-08-16 02:36:04 -04:00
|
|
|
Proxy-Connection: Keep-Alive
|
2009-04-17 08:48:24 -04:00
|
|
|
|
|
|
|
</protocol>
|
2014-02-01 07:47:00 -05:00
|
|
|
<stdout>
|
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 09:00:03 -05:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2014-02-01 07:47:00 -05:00
|
|
|
Content-Length: 6
|
|
|
|
|
2009-04-17 08:48:24 -04:00
|
|
|
hello
|
2014-02-01 07:47:00 -05:00
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 09:00:03 -05:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2014-02-01 07:47:00 -05:00
|
|
|
Content-Length: 6
|
|
|
|
|
2009-04-17 08:48:24 -04:00
|
|
|
hello
|
|
|
|
</stdout>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|