Updated the test harness to check for protocol support before running each
[platform/upstream/curl.git] / tests / data / test208
1 <testcase>
2 # Server-side
3 <reply>
4 <data>
5 HTTP/1.0 200 OK swsclose
6 Date: Thu, 09 Nov 2010 14:49:00 GMT
7 Server: test-server/fake
8
9 blablabla
10
11 </data>
12 </reply>
13
14 # Client-side
15 <client>
16 <server>
17 http
18 </server>
19 <features>
20 ftp
21 </features>
22  <name>
23 HTTP PUT a to a FTP URL with username+password - over HTTP proxy
24  </name>
25  <command>
26 -x http://%HOSTIP:%HTTPPORT ftp://daniel:mysecret@host.com/we/want/208 -T log/test208.txt
27 </command>
28 <file name="log/test208.txt">
29 Weird
30      file
31          to
32    upload
33 for
34    testing
35 the
36    PUT
37       feature
38 </file>
39 </client>
40
41 # Verify data after the test has been "shot"
42 <verify>
43 <strip>
44 ^User-Agent:.*
45 </strip>
46 <protocol>
47 PUT ftp://daniel:mysecret@host.com/we/want/208 HTTP/1.1\r
48 Authorization: Basic ZGFuaWVsOm15c2VjcmV0\r
49 Host: host.com:21\r
50 Pragma: no-cache\r
51 Accept: */*\r
52 Proxy-Connection: Keep-Alive\r
53 Content-Length: 78\r
54 Expect: 100-continue\r
55 \r
56 Weird
57      file
58          to
59    upload
60 for
61    testing
62 the
63    PUT
64       feature
65 </protocol>
66 </verify>
67 </testcase>