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> 43http://%HOSTIP:%HTTPPORT/%TESTNUMBER --xattr -o %LOGDIR/out%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.creator => curl 59user.mime_type => fake/data 60user.xdg.origin.url => http://%HOSTIP:%HTTPPORT/%TESTNUMBER 61</stdout> 62</verify> 63</testcase> 64