• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
19 12345
20 </data>
21 </reply>
22 
23 #
24 # Client-side
25 <client>
26 # this relies on the debug feature to allow us to set directory to store the
27 # -O output in, using the CURL_TESTDIR variable
28 <features>
29 debug
30 </features>
31 <server>
32 http
33 </server>
34 <name>
35 HTTP GET with -O -i without Content-Disposition, -D stdout
36 </name>
37 <setenv>
38 CURL_TESTDIR=%PWD/log
39 </setenv>
40 <command option="no-output,no-include">
41 http://%HOSTIP:%HTTPPORT/1343 -i -O -D -
42 </command>
43 </client>
44 
45 #
46 # Verify data after the test has been "shot"
47 <verify>
48 <protocol>
49 GET /1343 HTTP/1.1
50 Host: %HOSTIP:%HTTPPORT
51 User-Agent: curl/%VERSION
52 Accept: */*
53 
54 </protocol>
55 
56 <file1 name="log/1343">
57 HTTP/1.1 200 OK
58 Date: Thu, 09 Nov 2010 14:49:00 GMT
59 Server: test-server/fake
60 Content-Length: 6
61 Connection: close
62 Content-Type: text/html
63 
64 12345
65 </file1>
66 
67 <file2 name="log/stdout1343">
68 HTTP/1.1 200 OK
69 Date: Thu, 09 Nov 2010 14:49:00 GMT
70 Server: test-server/fake
71 Content-Length: 6
72 Connection: close
73 Content-Type: text/html
74 
75 </file2>
76 
77 </verify>
78 </testcase>
79