2007-12-08 17:53:28 -05:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
FTP
|
|
|
|
CURLOPT_PROXY_TRANSFER_MODE
|
|
|
|
CURLOPT_PROXY
|
2008-09-29 18:44:04 -04:00
|
|
|
HTTP proxy
|
2007-12-08 17:53:28 -05:00
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
2009-01-07 16:57:26 -05:00
|
|
|
<data nocheck="yes">
|
2014-01-31 18:52:08 -05:00
|
|
|
HTTP/1.1 200 OK swsclose
|
2020-02-28 09:00:03 -05:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2014-01-31 18:52:08 -05:00
|
|
|
Server: test-server/fake
|
|
|
|
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
|
|
|
|
ETag: "21025-dc7-39462498"
|
|
|
|
Accept-Ranges: bytes
|
|
|
|
Content-Length: 6
|
|
|
|
|
2007-12-08 17:53:28 -05:00
|
|
|
hello
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
2007-12-13 20:09:45 -05:00
|
|
|
<features>
|
|
|
|
ftp
|
2019-10-14 16:29:19 -04:00
|
|
|
proxy
|
2007-12-13 20:09:45 -05:00
|
|
|
</features>
|
2007-12-08 17:53:28 -05:00
|
|
|
<tool>
|
2021-03-12 11:38:26 -05:00
|
|
|
lib%TESTNUMBER
|
2007-12-08 17:53:28 -05:00
|
|
|
</tool>
|
|
|
|
<name>
|
2007-12-13 20:05:30 -05:00
|
|
|
FTP RETR over proxy with CURLOPT_PROXY_TRANSFER_MODE
|
2007-12-08 17:53:28 -05:00
|
|
|
</name>
|
|
|
|
# first URL then proxy
|
|
|
|
<command>
|
2021-03-12 11:38:26 -05:00
|
|
|
ftp://www.example.com/moo/%TESTNUMBER http://%HOSTIP:%HTTPPORT
|
2007-12-08 17:53:28 -05:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-12 11:38:26 -05:00
|
|
|
GET ftp://www.example.com/moo/%TESTNUMBER;type=i HTTP/1.1
|
2011-03-09 17:04:38 -05:00
|
|
|
Host: www.example.com:21
|
2007-12-08 17:53:28 -05:00
|
|
|
Accept: */*
|
2016-08-16 02:36:04 -04:00
|
|
|
Proxy-Connection: Keep-Alive
|
2007-12-08 17:53:28 -05:00
|
|
|
|
|
|
|
</protocol>
|
2014-01-31 18:58:58 -05:00
|
|
|
<stdout>
|
2007-12-08 17:53:28 -05:00
|
|
|
hello
|
|
|
|
</stdout>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|