15 Date: Thu, 21 Jun 2012 14:49:01 GMT
16 Server: test-server/fake
19 Content-Type: text/html
20 Content-Disposition: filename=name2006; charset=funny; option=strange
23 Some data delivered from an HTTP resource
30 # This relies on the debug feature to allow us to set directory to store the
31 # -O output in, using the CURL_TESTDIR variable. This test might use it upon
32 # failure only, successful execution won't actually use it.
42 Metalink local XML file, HTTP resource, using -O -D file
47 <command option="no-output,no-include">
48 --metalink file://%PWD/log/test2006.metalink -O -D log/heads2006
50 # local metalink file written before test command runs
51 <file name="log/test2006.metalink">
52 <?xml version="1.0" encoding="utf-8"?>
53 <metalink version="3.0" xmlns="http://www.metalinker.org/">
55 <file name="log/download2006">
57 <hash type="md5">we-only-check-the-strongest-hash-provided</hash>
58 <hash type="sha256">319cb6be756734b7ff689628ca3265580cdae6a0e38f42d4ac612ff4fba143b0</hash>
60 <resources maxconnections="1">
61 <url type="http" preference="90">http://%HOSTIP:%HTTPPORT/2006</url>
68 perl %SRCDIR/libtest/notexists.pl log/2006 log/name2006
73 # Verify data after the test has been "shot"
80 Host: %HOSTIP:%HTTPPORT
84 <file1 name="log/download2006">
85 Some data delivered from an HTTP resource
87 <file2 name="log/heads2006">
89 Date: Thu, 21 Jun 2012 14:49:01 GMT
90 Server: test-server/fake
93 Content-Type: text/html
94 Content-Disposition: filename=name2006; charset=funny; option=strange
98 <file3 name="log/stdout2006">
100 <file4 name="log/stderr2006">
101 Metalink: parsing (file://%PWD/log/test2006.metalink) metalink/XML...
102 Metalink: parsing (file://%PWD/log/test2006.metalink) OK
103 Metalink: fetching (log/download2006) from (http://%HOSTIP:%HTTPPORT/2006)...
104 Metalink: fetching (log/download2006) from (http://%HOSTIP:%HTTPPORT/2006) OK
105 Metalink: validating (log/download2006)...
106 Metalink: validating (log/download2006) [sha-256] OK
109 $_ = '' if (($_ !~ /^Metalink: /) && ($_ !~ /error/i) && ($_ !~ /warn/i))