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