xref: /curl/tests/data/test1372 (revision 56183c1d)
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: Tue, 09 Nov 2010 14:49:00 GMT
14Server: test-server/fake
15Content-Length: 6
16Connection: close
17Content-Type: text/html
18
1912345
20</data>
21</reply>
22
23#
24# Client-side
25<client>
26<server>
27http
28</server>
29<name>
30HTTP GET -o fname -i without Content-Disposition, -D file
31</name>
32<command option="no-output,no-include">
33http://%HOSTIP:%HTTPPORT/%TESTNUMBER -i -o %LOGDIR/outfile%TESTNUMBER -D %LOGDIR/heads%TESTNUMBER
34</command>
35</client>
36
37#
38# Verify data after the test has been "shot"
39<verify>
40<protocol>
41GET /%TESTNUMBER HTTP/1.1
42Host: %HOSTIP:%HTTPPORT
43User-Agent: curl/%VERSION
44Accept: */*
45
46</protocol>
47
48<file1 name="%LOGDIR/outfile%TESTNUMBER">
49HTTP/1.1 200 OK
50Date: Tue, 09 Nov 2010 14:49:00 GMT
51Server: test-server/fake
52Content-Length: 6
53Connection: close
54Content-Type: text/html
55
5612345
57</file1>
58
59<file2 name="%LOGDIR/heads%TESTNUMBER">
60HTTP/1.1 200 OK
61Date: Tue, 09 Nov 2010 14:49:00 GMT
62Server: test-server/fake
63Content-Length: 6
64Connection: close
65Content-Type: text/html
66
67</file2>
68
69<file3 name="%LOGDIR/stdout%TESTNUMBER">
70</file3>
71
72<notexists>
73%LOGDIR/%TESTNUMBER
74</notexists>
75</verify>
76</testcase>
77