• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6</keywords>
7</info>
8
9#
10<reply>
11<data nocheck="yes">
12HTTP/1.1 200 OK
13Date: Thu, 09 Nov 2010 14:49:00 GMT
14Server: test-server/fake
15Content-Length: 6
16Connection: close
17Content-Type: text/html
18Content-Disposition: filename=name1344; charset=funny; option=strange
19
2012345
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>
30debug
31</features>
32<server>
33http
34</server>
35<name>
36HTTP GET with -O -i and Content-Disposition, -D file
37</name>
38<setenv>
39CURL_TESTDIR=%PWD/log
40</setenv>
41<command option="no-output,no-include">
42http://%HOSTIP:%HTTPPORT/1344 -i -O -D log/heads1344
43</command>
44<postcheck>
45perl %SRCDIR/libtest/notexists.pl log/name1344
46</postcheck>
47</client>
48
49#
50# Verify data after the test has been "shot"
51<verify>
52<protocol>
53GET /1344 HTTP/1.1
54Host: %HOSTIP:%HTTPPORT
55User-Agent: curl/%VERSION
56Accept: */*
57
58</protocol>
59
60<file1 name="log/1344">
61HTTP/1.1 200 OK
62Date: Thu, 09 Nov 2010 14:49:00 GMT
63Server: test-server/fake
64Content-Length: 6
65Connection: close
66Content-Type: text/html
67Content-Disposition: filename=name1344; charset=funny; option=strange
68
6912345
70</file1>
71
72<file2 name="log/heads1344">
73HTTP/1.1 200 OK
74Date: Thu, 09 Nov 2010 14:49:00 GMT
75Server: test-server/fake
76Content-Length: 6
77Connection: close
78Content-Type: text/html
79Content-Disposition: filename=name1344; charset=funny; option=strange
80
81</file2>
82
83<file3 name="log/stdout1344">
84</file3>
85
86</verify>
87</testcase>
88