xref: /curl/tests/data/test208 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4FTP
5HTTP
6HTTP PUT
7HTTP proxy
8</keywords>
9</info>
10
11# Server-side
12<reply>
13<data>
14HTTP/1.0 200 OK swsclose
15Date: Tue, 09 Nov 2010 14:49:00 GMT
16Server: test-server/fake
17
18blablabla
19
20</data>
21</reply>
22
23# Client-side
24<client>
25<server>
26http
27</server>
28<features>
29ftp
30proxy
31</features>
32<name>
33HTTP PUT to a FTP URL with username+password - over HTTP proxy
34</name>
35<command>
36-x http://%HOSTIP:%HTTPPORT ftp://daniel:mysecret@host.com/we/want/%TESTNUMBER -T %LOGDIR/test%TESTNUMBER.txt
37</command>
38<file name="%LOGDIR/test%TESTNUMBER.txt">
39Weird
40     file
41         to
42   upload
43for
44   testing
45the
46   PUT
47      feature
48</file>
49</client>
50
51# Verify data after the test has been "shot"
52<verify>
53<protocol>
54PUT ftp://daniel:mysecret@host.com/we/want/%TESTNUMBER HTTP/1.1
55Host: host.com:21
56Authorization: Basic ZGFuaWVsOm15c2VjcmV0
57User-Agent: curl/%VERSION
58Accept: */*
59Proxy-Connection: Keep-Alive
60Content-Length: 78
61
62Weird
63     file
64         to
65   upload
66for
67   testing
68the
69   PUT
70      feature
71</protocol>
72</verify>
73</testcase>
74