xref: /curl/tests/data/test688 (revision 18f1cd7a)
1<testcase>
2<info>
3<keywords>
4HTTP
5xattr
6</keywords>
7</info>
8
9#
10# Server-side
11<reply>
12<data nocheck="yes">
13HTTP/1.1 200 OK
14Date: Tue, 09 Nov 2010 14:49:00 GMT
15Server: test-server/fake
16Accept-Ranges: bytes
17Content-Length: 6
18Connection: close
19Content-Type: fake/data
20
21-foo-
22</data>
23</reply>
24
25#
26# Client-side
27<client>
28<server>
29http
30</server>
31<features>
32Debug
33xattr
34</features>
35# simulate the xattr operations
36<setenv>
37CURL_FAKE_XATTR=1
38</setenv>
39<name>
40basic --xattr with -O
41</name>
42<command>
43--xattr -O --output-dir %LOGDIR http://%HOSTIP:%HTTPPORT/%TESTNUMBER
44</command>
45</client>
46
47#
48# Verify data after the test has been "shot"
49<verify>
50<protocol>
51GET /%TESTNUMBER HTTP/1.1
52Host: %HOSTIP:%HTTPPORT
53User-Agent: curl/%VERSION
54Accept: */*
55
56</protocol>
57<stdout mode="text">
58user.mime_type => fake/data
59user.xdg.origin.url => http://%HOSTIP:%HTTPPORT/%TESTNUMBER
60</stdout>
61</verify>
62</testcase>
63