16 Date: Thu, 21 Jun 2012 14:50:02 GMT
17 Server: test-server/fake
20 Content-Type: text/html
21 Content-Disposition: filename=name2007; charset=funny; option=strange
24 Something delivered from an HTTP resource
31 # This relies on the debug feature to allow us to set directory to store the
32 # -O and -J output in, using the CURL_TESTDIR variable. This test might use
33 # it upon failure only, successful execution won't actually use it.
43 Metalink local XML file, HTTP resource, using -O -J -D file
48 <command option="no-output,no-include">
49 --metalink file://%PWD/log/test2007.metalink -J -O -D log/heads2007
51 # local metalink file written before test command runs
52 <file name="log/test2007.metalink">
53 <?xml version="1.0" encoding="utf-8"?>
54 <metalink version="3.0" xmlns="http://www.metalinker.org/">
56 <file name="log/download2007">
58 <hash type="md5">we-only-check-the-strongest-hash-provided</hash>
59 <hash type="sha256">52899e30f80e3490632d505653204e1fb5b02bda141048704ce9a0ed00b8a3f5</hash>
61 <resources maxconnections="1">
62 <url type="http" preference="90">http://%HOSTIP:%HTTPPORT/2007</url>
69 perl %SRCDIR/libtest/notexists.pl log/2007 log/name2007
74 # Verify data after the test has been "shot"
81 Host: %HOSTIP:%HTTPPORT
\r
85 <file1 name="log/download2007">
86 Something delivered from an HTTP resource
88 <file2 name="log/heads2007">
90 Date: Thu, 21 Jun 2012 14:50:02 GMT
91 Server: test-server/fake
94 Content-Type: text/html
95 Content-Disposition: filename=name2007; charset=funny; option=strange
99 <file3 name="log/stdout2007">
101 <file4 name="log/stderr2007">
102 Metalink: parsing (file://%PWD/log/test2007.metalink) metalink/XML...
103 Metalink: parsing (file://%PWD/log/test2007.metalink) OK
104 Metalink: fetching (log/download2007) from (http://%HOSTIP:%HTTPPORT/2007)...
105 Metalink: fetching (log/download2007) from (http://%HOSTIP:%HTTPPORT/2007) OK
106 Metalink: validating (log/download2007)...
107 Metalink: validating (log/download2007) [sha-256] OK
110 $_ = '' if (($_ !~ /^Metalink: /) && ($_ !~ /error/i) && ($_ !~ /warn/i))