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 301 OK 14Date: Tue, 09 Nov 2010 14:49:00 GMT 15Server: test-server/fake 16Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 17ETag: "21025-dc7-39462498" 18Accept-Ranges: bytes 19Content-Length: 6 20Connection: close 21Content-Type: fake/data 22Funny-head: yesyes 23Location: data/%TESTNUMBER0002.txt?coolsite=yes 24 25-foo- 26</data> 27<data2 nocheck="yes"> 28HTTP/1.1 200 OK 29Date: Tue, 09 Nov 2010 14:49:00 GMT 30Server: test-server/real 31Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 32ETag: "21025-dc7-39462498" 33Accept-Ranges: bytes 34Content-Length: 6 35Connection: close 36Content-Type: text/html 37Funny-head: yesyes 38 39-foo- 40</data2> 41</reply> 42 43# 44# Client-side 45<client> 46<server> 47http 48</server> 49<features> 50Debug 51xattr 52</features> 53# simulate the xattr operations 54<setenv> 55CURL_FAKE_XATTR=1 56</setenv> 57<name> 58--xattr with redirect 59</name> 60<command> 61http://%HOSTIP:%HTTPPORT/%TESTNUMBER --xattr -L -o %LOGDIR/out%TESTNUMBER 62</command> 63</client> 64 65# 66# Verify data after the test has been "shot" 67<verify> 68<protocol> 69GET /%TESTNUMBER HTTP/1.1 70Host: %HOSTIP:%HTTPPORT 71User-Agent: curl/%VERSION 72Accept: */* 73 74GET /data/%TESTNUMBER0002.txt?coolsite=yes HTTP/1.1 75Host: %HOSTIP:%HTTPPORT 76User-Agent: curl/%VERSION 77Accept: */* 78 79</protocol> 80<stdout mode="text"> 81user.creator => curl 82user.mime_type => text/html 83user.xdg.origin.url => http://%HOSTIP:%HTTPPORT/%TESTNUMBER 84</stdout> 85</verify> 86</testcase> 87