15 Date: Thu, 21 Jun 2012 15:23:48 GMT
16 Server: test-server/fake
19 Content-Type: text/html
20 Content-Disposition: filename=name2008; charset=funny; option=strange
23 Some stuff delivered from an HTTP resource
38 Metalink local XML file, HTTP resource, using -o fname -D file
40 <command option="no-output,no-include">
41 --metalink file://%PWD/log/test2008.metalink -o log/outfile2008 -D log/heads2008
43 # local metalink file written before test command runs
44 <file name="log/test2008.metalink">
45 <?xml version="1.0" encoding="utf-8"?>
46 <metalink version="3.0" xmlns="http://www.metalinker.org/">
48 <file name="log/download2008">
50 <hash type="md5">we-only-check-the-strongest-hash-provided</hash>
51 <hash type="sha256">711b1b566b536c5baae9b36f2f5c1830a7c8ff126d1afa2febc5b59f8d0aab54</hash>
53 <resources maxconnections="1">
54 <url type="http" preference="90">http://%HOSTIP:%HTTPPORT/2008</url>
61 perl %SRCDIR/libtest/notexists.pl log/2008 log/name2008 log/outfile2008
66 # Verify data after the test has been "shot"
73 Host: %HOSTIP:%HTTPPORT
77 <file1 name="log/download2008">
78 Some stuff delivered from an HTTP resource
80 <file2 name="log/heads2008">
82 Date: Thu, 21 Jun 2012 15:23:48 GMT
83 Server: test-server/fake
86 Content-Type: text/html
87 Content-Disposition: filename=name2008; charset=funny; option=strange
91 <file3 name="log/stdout2008">
93 <file4 name="log/stderr2008">
94 Metalink: parsing (file://%PWD/log/test2008.metalink) metalink/XML...
95 Metalink: parsing (file://%PWD/log/test2008.metalink) OK
96 Metalink: fetching (log/download2008) from (http://%HOSTIP:%HTTPPORT/2008)...
97 Metalink: fetching (log/download2008) from (http://%HOSTIP:%HTTPPORT/2008) OK
98 Metalink: validating (log/download2008)...
99 Metalink: validating (log/download2008) [sha-256] OK
102 $_ = '' if (($_ !~ /^Metalink: /) && ($_ !~ /error/i) && ($_ !~ /warn/i))