2008-04-28 22:30:09 -04:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
followlocation
|
|
|
|
FTP
|
|
|
|
PASV
|
|
|
|
FILE
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data1>
|
|
|
|
HTTP/1.1 302 OK
|
2020-02-28 09:00:03 -05:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2008-04-28 22:30:09 -04:00
|
|
|
Server: test-server/fake swsclose
|
|
|
|
Content-Type: text/html
|
|
|
|
Funny-head: yesyes
|
2021-03-12 11:38:26 -05:00
|
|
|
Location: ftp://%HOSTIP:%FTPPORT/%TESTNUMBER0002
|
2008-04-28 22:30:09 -04:00
|
|
|
Content-Length: 0
|
|
|
|
Connection: close
|
|
|
|
|
|
|
|
</data1>
|
|
|
|
<data2>
|
|
|
|
data
|
|
|
|
to
|
|
|
|
see
|
|
|
|
that FTP
|
|
|
|
works
|
|
|
|
so does it?
|
|
|
|
</data2>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
ftp
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
HTTP Location: redirect to FTP URL
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-12 11:38:26 -05:00
|
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER0001 -L
|
2008-04-28 22:30:09 -04:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-12 11:38:26 -05:00
|
|
|
GET /%TESTNUMBER0001 HTTP/1.1
|
2008-04-28 22:30:09 -04:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 07:45:24 -04:00
|
|
|
User-Agent: curl/%VERSION
|
2008-04-28 22:30:09 -04:00
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
USER anonymous
|
|
|
|
PASS ftp@example.com
|
|
|
|
PWD
|
|
|
|
EPSV
|
|
|
|
TYPE I
|
2021-03-12 11:38:26 -05:00
|
|
|
SIZE %TESTNUMBER0002
|
|
|
|
RETR %TESTNUMBER0002
|
2008-04-28 22:30:09 -04:00
|
|
|
QUIT
|
|
|
|
</protocol>
|
|
|
|
<stdout>
|
|
|
|
HTTP/1.1 302 OK
|
2020-02-28 09:00:03 -05:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2008-04-28 22:30:09 -04:00
|
|
|
Server: test-server/fake swsclose
|
|
|
|
Content-Type: text/html
|
|
|
|
Funny-head: yesyes
|
2021-03-12 11:38:26 -05:00
|
|
|
Location: ftp://%HOSTIP:%FTPPORT/%TESTNUMBER0002
|
2008-04-28 22:30:09 -04:00
|
|
|
Content-Length: 0
|
|
|
|
Connection: close
|
|
|
|
|
|
|
|
data
|
|
|
|
to
|
|
|
|
see
|
|
|
|
that FTP
|
|
|
|
works
|
|
|
|
so does it?
|
|
|
|
</stdout>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|