Imported Upstream version 7.59.0
[platform/upstream/curl.git] / tests / data / test1124
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 compressed
7 Transfer-Encoding
8 chunked Transfer-Encoding
9 </keywords>
10 </info>
11 #
12 # Server-side
13 <reply>
14 <data base64="yes">
15 SFRUUC8xLjEgMjAwIE9LDQpEYXRlOiBNb24sIDI5IE5vdiAyMDI0IDIxOjU2OjUzIEdNVA0KU2Vy
16 dmVyOiBTb21ldGhpbmctVEUtZnJpZW5kbHkvMC4xDQpWYXJ5OiBBY2NlcHQtRW5jb2RpbmcNCkNv
17 bnRlbnQtVHlwZTogdGV4dC9odG1sOyBjaGFyc2V0PUlTTy04ODU5LTENClRyYW5zZmVyLUVuY29k
18 aW5nOiBnemlwLCBjaHVua2VkDQoNCjE0DQofiwgIeZ6rQQADbGFsYWxhAMvJzA0KMTgNCktVMORS
19 yAHRRlwKEIYxFwAKAnFgGAAAAA0KMA0KDQo=
20 </data>
21
22 <datacheck>
23 HTTP/1.1 200 OK
24 Date: Mon, 29 Nov 2024 21:56:53 GMT
25 Server: Something-TE-friendly/0.1
26 Vary: Accept-Encoding
27 Content-Type: text/html; charset=ISO-8859-1
28 Transfer-Encoding: gzip, chunked
29
30 line 1
31  line 2
32   line 3
33 </datacheck>
34
35 </reply>
36
37 #
38 # Client-side
39 <client>
40 <features>
41 libz
42 </features>
43 <server>
44 http
45 </server>
46  <name>
47 HTTP GET gzip+chunked transfer-encoded content
48  </name>
49  <command>
50 http://%HOSTIP:%HTTPPORT/1124 --tr-encoding
51 </command>
52 </client>
53
54 #
55 # Verify data after the test has been "shot"
56 <verify>
57 <strip>
58 ^User-Agent:.*
59 </strip>
60 <protocol>
61 GET /1124 HTTP/1.1
62 Host: %HOSTIP:%HTTPPORT
63 Accept: */*
64 Connection: TE
65 TE: gzip
66
67 </protocol>
68 </verify>
69 </testcase>