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: Thu, 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=%PWD/log 39</setenv> 40<command option="no-output,no-include"> 41http://%HOSTIP:%HTTPPORT/1342 -i -O -D log/heads1342 42</command> 43</client> 44 45# 46# Verify data after the test has been "shot" 47<verify> 48<strip> 49^User-Agent:.* 50</strip> 51<protocol> 52GET /1342 HTTP/1.1 53Host: %HOSTIP:%HTTPPORT 54Accept: */* 55 56</protocol> 57 58<file1 name="log/1342"> 59HTTP/1.1 200 OK 60Date: Thu, 09 Nov 2010 14:49:00 GMT 61Server: test-server/fake 62Content-Length: 6 63Connection: close 64Content-Type: text/html 65 6612345 67</file1> 68 69<file2 name="log/heads1342"> 70HTTP/1.1 200 OK 71Date: Thu, 09 Nov 2010 14:49:00 GMT 72Server: test-server/fake 73Content-Length: 6 74Connection: close 75Content-Type: text/html 76 77</file2> 78 79<file3 name="log/stdout1342"> 80</file3> 81 82</verify> 83</testcase> 84