• 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
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/1372 -i -o log/outfile1372 -D log/heads1372
34</command>
35<postcheck>
36perl %SRCDIR/libtest/notexists.pl log/1372
37</postcheck>
38</client>
39
40#
41# Verify data after the test has been "shot"
42<verify>
43<protocol>
44GET /1372 HTTP/1.1
45Host: %HOSTIP:%HTTPPORT
46User-Agent: curl/%VERSION
47Accept: */*
48
49</protocol>
50
51<file1 name="log/outfile1372">
52HTTP/1.1 200 OK
53Date: Thu, 09 Nov 2010 14:49:00 GMT
54Server: test-server/fake
55Content-Length: 6
56Connection: close
57Content-Type: text/html
58
5912345
60</file1>
61
62<file2 name="log/heads1372">
63HTTP/1.1 200 OK
64Date: Thu, 09 Nov 2010 14:49:00 GMT
65Server: test-server/fake
66Content-Length: 6
67Connection: close
68Content-Type: text/html
69
70</file2>
71
72<file3 name="log/stdout1372">
73</file3>
74
75</verify>
76</testcase>
77