1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6</keywords> 7</info> 8 9# 10<reply> 11<data nocheck="yes"> 12HTTP/1.1 200 OK 13Date: Tue, 09 Nov 2010 14:49:00 GMT 14Server: test-server/fake 15Content-Length: 6 16Connection: close 17Content-Type: text/html 18 1912345 20</data> 21</reply> 22 23# 24# Client-side 25<client> 26# this relies on the debug feature to allow us to set directory to store the 27# -O output in, using the CURL_TESTDIR variable 28<features> 29debug 30</features> 31<server> 32http 33</server> 34<name> 35HTTP GET with -O -i without Content-Disposition, -D file 36</name> 37<setenv> 38CURL_TESTDIR=%LOGDIR 39</setenv> 40<command option="no-output,no-include"> 41http://%HOSTIP:%HTTPPORT/%TESTNUMBER -i -O -D %LOGDIR/heads%TESTNUMBER 42</command> 43</client> 44 45# 46# Verify data after the test has been "shot" 47<verify> 48<protocol> 49GET /%TESTNUMBER HTTP/1.1 50Host: %HOSTIP:%HTTPPORT 51User-Agent: curl/%VERSION 52Accept: */* 53 54</protocol> 55 56<file1 name="%LOGDIR/%TESTNUMBER"> 57HTTP/1.1 200 OK 58Date: Tue, 09 Nov 2010 14:49:00 GMT 59Server: test-server/fake 60Content-Length: 6 61Connection: close 62Content-Type: text/html 63 6412345 65</file1> 66 67<file2 name="%LOGDIR/heads%TESTNUMBER"> 68HTTP/1.1 200 OK 69Date: Tue, 09 Nov 2010 14:49:00 GMT 70Server: test-server/fake 71Content-Length: 6 72Connection: close 73Content-Type: text/html 74 75</file2> 76 77<file3 name="%LOGDIR/stdout%TESTNUMBER"> 78</file3> 79 80</verify> 81</testcase> 82