Home | History | Annotate | Download | only in data
      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 </keywords>
      7 </info>
      8 
      9 #
     10 <reply>
     11 <data nocheck="yes">
     12 HTTP/1.1 200 OK
     13 Date: Thu, 09 Nov 2010 14:49:00 GMT
     14 Server: test-server/fake
     15 Content-Length: 6
     16 Connection: close
     17 Content-Type: text/html
     18 Content-Disposition: filename=name1336; charset=funny; option=strange
     19 
     20 12345
     21 </data>
     22 </reply>
     23 
     24 #
     25 # Client-side
     26 <client>
     27 # this relies on the debug feature to allow us to set directory to store the
     28 # -O output in, using the CURL_TESTDIR variable
     29 <features>
     30 debug
     31 </features>
     32 <server>
     33 http
     34 </server>
     35 <name>
     36 HTTP GET with -O and Content-Disposition, -D file
     37 </name>
     38 <setenv>
     39 CURL_TESTDIR=%PWD/log
     40 </setenv>
     41 <command option="no-output,no-include">
     42 http://%HOSTIP:%HTTPPORT/1336 -O -D log/heads1336
     43 </command>
     44 <postcheck>
     45 perl %SRCDIR/libtest/notexists.pl log/name1336
     46 </postcheck>
     47 </client>
     48 
     49 #
     50 # Verify data after the test has been "shot"
     51 <verify>
     52 <strip>
     53 ^User-Agent:.*
     54 </strip>
     55 <protocol>
     56 GET /1336 HTTP/1.1
     57 Host: %HOSTIP:%HTTPPORT
     58 Accept: */*
     59 
     60 </protocol>
     61 
     62 <file1 name="log/1336">
     63 12345
     64 </file1>
     65 
     66 <file2 name="log/heads1336">
     67 HTTP/1.1 200 OK
     68 Date: Thu, 09 Nov 2010 14:49:00 GMT
     69 Server: test-server/fake
     70 Content-Length: 6
     71 Connection: close
     72 Content-Type: text/html
     73 Content-Disposition: filename=name1336; charset=funny; option=strange
     74 
     75 </file2>
     76 
     77 <file3 name="log/stdout1336">
     78 </file3>
     79 
     80 </verify>
     81 </testcase>
     82