aa889c50f5ff39812626a7fc5ce44a641d8d830a
[platform/upstream/curl.git] / tests / data / test78
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 -z
7 </keywords>
8 </info>
9 #
10 # Server-side
11 <reply>
12 <data>
13 HTTP/1.1 200 OK
14 Server: test-server/fake
15 Last-Modified: Tue, 13 Jun 1990 12:10:00 GMT
16 ETag: "21025-dc7-39462498"
17 Accept-Ranges: bytes
18 Content-Length: 6
19 Connection: close
20 Content-Type: text/html
21 Funny-head: yesyes
22
23 -foo-
24 </data>
25 <datacheck>
26 HTTP/1.1 200 OK
27 Server: test-server/fake
28 Last-Modified: Tue, 13 Jun 1990 12:10:00 GMT
29 ETag: "21025-dc7-39462498"
30 Accept-Ranges: bytes
31 Content-Length: 6
32 Connection: close
33 Content-Type: text/html
34 Funny-head: yesyes
35
36 </datacheck>
37 </reply>
38
39 #
40 # Client-side
41 <client>
42 <server>
43 http
44 </server>
45  <name>
46 HTTP with -z "newer date"
47  </name>
48  <command>
49 http://%HOSTIP:%HTTPPORT/78 -z "dec 12 11:00:00 1999 GMT"
50 </command>
51 </client>
52
53 #
54 # Verify data after the test has been "shot"
55 <verify>
56 <strip>
57 ^User-Agent:.*
58 </strip>
59 <protocol>
60 GET /78 HTTP/1.1\r
61 Host: %HOSTIP:%HTTPPORT\r
62 Accept: */*\r
63 If-Modified-Since: Sun, 12 Dec 1999 11:00:00 GMT\r
64 \r
65 </protocol>
66 </verify>
67 </testcase>