extensions/curl/curl-src/tests/data/test2012
changeset 3839 05c359144594
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/extensions/curl/curl-src/tests/data/test2012	Sun Mar 17 22:23:20 2013 +0000
     1.3 @@ -0,0 +1,92 @@
     1.4 +<testcase>
     1.5 +<info>
     1.6 +<keywords>
     1.7 +Metalink
     1.8 +HTTP
     1.9 +HTTP GET
    1.10 +</keywords>
    1.11 +</info>
    1.12 +
    1.13 +#
    1.14 +# Server-side
    1.15 +<reply>
    1.16 +<data nocheck="yes">
    1.17 +HTTP/1.1 200 OK
    1.18 +Date: Wed, 20 Jun 2012 14:49:00 GMT
    1.19 +Server: test-server/fake
    1.20 +Content-Length: 46
    1.21 +Connection: close
    1.22 +Content-Type: text/html
    1.23 +Content-Disposition: filename=name2012; charset=funny; option=strange
    1.24 +Funny-head: yesyes
    1.25 +
    1.26 +Some contents delivered from an HTTP resource
    1.27 +</data>
    1.28 +</reply>
    1.29 +
    1.30 +#
    1.31 +# Client-side
    1.32 +<client>
    1.33 +<server>
    1.34 +http
    1.35 +</server>
    1.36 +<features>
    1.37 +file
    1.38 +Metalink
    1.39 +</features>
    1.40 + <name>
    1.41 +Metalink local XML file, HTTP resource, without hash
    1.42 + </name>
    1.43 +<command option="no-output,no-include">
    1.44 +--metalink file://%PWD/log/test2012.metalink
    1.45 +</command>
    1.46 +# local metalink file written before test command runs
    1.47 +<file name="log/test2012.metalink">
    1.48 +<?xml version="1.0" encoding="utf-8"?>
    1.49 +<metalink version="3.0" xmlns="http://www.metalinker.org/">
    1.50 + <files>
    1.51 +  <file name="log/download2012">
    1.52 +   <verification>
    1.53 +   </verification>
    1.54 +   <resources maxconnections="1">
    1.55 +    <url type="http" preference="90">http://%HOSTIP:%HTTPPORT/2012</url>
    1.56 +   </resources>
    1.57 +  </file>
    1.58 + </files>
    1.59 +</metalink>
    1.60 +</file>
    1.61 +<postcheck>
    1.62 +perl %SRCDIR/libtest/notexists.pl log/2012 log/name2012
    1.63 +</postcheck>
    1.64 +</client>
    1.65 +
    1.66 +#
    1.67 +# Verify data after the test has been "shot"
    1.68 +<verify>
    1.69 +<strip>
    1.70 +^User-Agent:.*
    1.71 +</strip>
    1.72 +<protocol>
    1.73 +GET /2012 HTTP/1.1
    1.74 +Host: %HOSTIP:%HTTPPORT
    1.75 +Accept: */*
    1.76 +
    1.77 +</protocol>
    1.78 +<file1 name="log/download2012">
    1.79 +Some contents delivered from an HTTP resource
    1.80 +</file1>
    1.81 +<file2 name="log/stdout2012">
    1.82 +</file2>
    1.83 +<file3 name="log/stderr2012">
    1.84 +Metalink: parsing (file://%PWD/log/test2012.metalink) metalink/XML...
    1.85 +Metalink: parsing (file://%PWD/log/test2012.metalink) WARNING (digest missing)
    1.86 +Metalink: fetching (log/download2012) from (http://%HOSTIP:%HTTPPORT/2012)...
    1.87 +Metalink: fetching (log/download2012) from (http://%HOSTIP:%HTTPPORT/2012) OK
    1.88 +Metalink: validating (log/download2012)...
    1.89 +Metalink: validating (log/download2012) FAILED (digest missing)
    1.90 +</file3>
    1.91 +<stripfile3>
    1.92 +$_ = '' if (($_ !~ /^Metalink: /) && ($_ !~ /error/i) && ($_ !~ /warn/i))
    1.93 +</stripfile3>
    1.94 +</verify>
    1.95 +</testcase>