xref: /curl/tests/data/test975 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5FTP
6--location-trusted
7</keywords>
8</info>
9
10#
11# Server-side
12<reply>
13<data>
14HTTP/1.1 301 redirect
15Date: Tue, 09 Nov 2010 14:49:00 GMT
16Server: test-server/fake
17Content-Length: 0
18Connection: close
19Content-Type: text/html
20Location: ftp://%HOSTIP:%FTPPORT/a/path/%TESTNUMBER0002
21
22</data>
23<data2>
24data
25    to
26      see
27that FTP
28works
29  so does it?
30</data2>
31
32<datacheck>
33HTTP/1.1 301 redirect
34Date: Tue, 09 Nov 2010 14:49:00 GMT
35Server: test-server/fake
36Content-Length: 0
37Connection: close
38Content-Type: text/html
39Location: ftp://%HOSTIP:%FTPPORT/a/path/%TESTNUMBER0002
40
41data
42    to
43      see
44that FTP
45works
46  so does it?
47</datacheck>
48
49</reply>
50
51#
52# Client-side
53<client>
54<server>
55http
56ftp
57</server>
58<name>
59HTTP with auth redirected to FTP allowing auth to continue
60</name>
61<command>
62http://%HOSTIP:%HTTPPORT/%TESTNUMBER --location-trusted -u joe:secret
63</command>
64</client>
65
66#
67# Verify data after the test has been "shot"
68<verify>
69<protocol>
70GET /%TESTNUMBER HTTP/1.1
71Host: %HOSTIP:%HTTPPORT
72Authorization: Basic am9lOnNlY3JldA==
73User-Agent: curl/%VERSION
74Accept: */*
75
76USER joe
77PASS secret
78PWD
79CWD a
80CWD path
81EPSV
82TYPE I
83SIZE %TESTNUMBER0002
84RETR %TESTNUMBER0002
85QUIT
86</protocol>
87</verify>
88</testcase>
89