16 Date: Thu, 21 Jun 2012 16:27:17 GMT
17 Server: test-server/fake
20 Content-Type: text/html
21 Content-Disposition: filename=name2009; charset=funny; option=strange
24 Some contents delivered from an HTTP resource
39 Metalink local XML file, HTTP resource, using -o fname -J -D file
41 <command option="no-output,no-include">
42 --metalink file://%PWD/log/test2009.metalink -J -o log/outfile2009 -D log/heads2009
44 # local metalink file written before test command runs
45 <file name="log/test2009.metalink">
46 <?xml version="1.0" encoding="utf-8"?>
47 <metalink version="3.0" xmlns="http://www.metalinker.org/">
49 <file name="log/download2009">
51 <hash type="md5">we-only-check-the-strongest-hash-provided</hash>
52 <hash type="sha256">e4c5b83384ba7d5f8e201d61747a14f29baacd7dfadce0fbd56661db4bba72b2</hash>
54 <resources maxconnections="1">
55 <url type="http" preference="90">http://%HOSTIP:%HTTPPORT/2009</url>
62 perl %SRCDIR/libtest/notexists.pl log/2009 log/name2009 log/outfile2009
67 # Verify data after the test has been "shot"
74 Host: %HOSTIP:%HTTPPORT
\r
78 <file1 name="log/download2009">
79 Some contents delivered from an HTTP resource
81 <file2 name="log/heads2009">
83 Date: Thu, 21 Jun 2012 16:27:17 GMT
84 Server: test-server/fake
87 Content-Type: text/html
88 Content-Disposition: filename=name2009; charset=funny; option=strange
92 <file3 name="log/stdout2009">
94 <file4 name="log/stderr2009">
95 Metalink: parsing (file://%PWD/log/test2009.metalink) metalink/XML...
96 Metalink: parsing (file://%PWD/log/test2009.metalink) OK
97 Metalink: fetching (log/download2009) from (http://%HOSTIP:%HTTPPORT/2009)...
98 Metalink: fetching (log/download2009) from (http://%HOSTIP:%HTTPPORT/2009) OK
99 Metalink: validating (log/download2009)...
100 Metalink: validating (log/download2009) [sha-256] OK
103 $_ = '' if (($_ !~ /^Metalink: /) && ($_ !~ /error/i) && ($_ !~ /warn/i))