• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6followlocation
7FTP
8PASV
9FILE
10</keywords>
11</info>
12
13#
14# Server-side
15<reply>
16<data1>
17HTTP/1.1 302 OK
18Date: Thu, 09 Nov 2010 14:49:00 GMT
19Server: test-server/fake swsclose
20Content-Type: text/html
21Funny-head: yesyes
22Location: ftp://%HOSTIP:%FTPPORT/10280002
23Content-Length: 0
24Connection: close
25
26</data1>
27<data2>
28data
29    to
30      see
31that FTP
32works
33  so does it?
34</data2>
35</reply>
36
37#
38# Client-side
39<client>
40<server>
41http
42ftp
43</server>
44 <name>
45HTTP Location: redirect to FTP URL
46 </name>
47 <command>
48http://%HOSTIP:%HTTPPORT/10280001 -L
49</command>
50</client>
51
52#
53# Verify data after the test has been "shot"
54<verify>
55<protocol>
56GET /10280001 HTTP/1.1
57Host: %HOSTIP:%HTTPPORT
58User-Agent: curl/%VERSION
59Accept: */*
60
61USER anonymous
62PASS ftp@example.com
63PWD
64EPSV
65TYPE I
66SIZE 10280002
67RETR 10280002
68QUIT
69</protocol>
70<stdout>
71HTTP/1.1 302 OK
72Date: Thu, 09 Nov 2010 14:49:00 GMT
73Server: test-server/fake swsclose
74Content-Type: text/html
75Funny-head: yesyes
76Location: ftp://%HOSTIP:%FTPPORT/10280002
77Content-Length: 0
78Connection: close
79
80data
81    to
82      see
83that FTP
84works
85  so does it?
86</stdout>
87</verify>
88</testcase>
89