test1341 (1219B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 -J 7 </keywords> 8 </info> 9 10 # 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 Content-Length: 6 17 Connection: close 18 Content-Type: text/html 19 Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange 20 21 12345 22 </data> 23 </reply> 24 25 # 26 # Client-side 27 <client> 28 <server> 29 http 30 </server> 31 <name> 32 HTTP GET with -O -J and Content-Disposition, -D stdout 33 </name> 34 <command option="no-output,no-include"> 35 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -J -O -D - -w "curl saved to filename %{filename_effective}\n" --output-dir %LOGDIR 36 </command> 37 </client> 38 39 # 40 # Verify data after the test has been "shot" 41 <verify> 42 <protocol> 43 GET /%TESTNUMBER HTTP/1.1 44 Host: %HOSTIP:%HTTPPORT 45 User-Agent: curl/%VERSION 46 Accept: */* 47 48 </protocol> 49 50 <file1 name="%LOGDIR/name%TESTNUMBER"> 51 12345 52 </file1> 53 54 <file2 name="%LOGDIR/stdout%TESTNUMBER"> 55 HTTP/1.1 200 OK 56 Date: Tue, 09 Nov 2010 14:49:00 GMT 57 Server: test-server/fake 58 Content-Length: 6 59 Connection: close 60 Content-Type: text/html 61 Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange 62 63 curl saved to filename %LOGDIR/name%TESTNUMBER 64 </file2> 65 66 </verify> 67 </testcase>