mirror of
https://github.com/moparisthebest/curl
synced 2024-12-25 09:38:54 -05:00
e2b4df7b5e
This makes the tests easier to copy and relocate to other test numbers without having to update content. Closes #6738
68 lines
1.2 KiB
Plaintext
68 lines
1.2 KiB
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
HTTP
|
|
HTTP GET
|
|
compressed
|
|
Transfer-Encoding
|
|
chunked Transfer-Encoding
|
|
</keywords>
|
|
</info>
|
|
#
|
|
# Server-side
|
|
<reply>
|
|
<data base64="yes">
|
|
SFRUUC8xLjEgMjAwIE9LDQpEYXRlOiBNb24sIDI5IE5vdiAyMDI0IDIxOjU2OjUzIEdNVA0KU2Vy
|
|
dmVyOiBTb21ldGhpbmctVEUtZnJpZW5kbHkvMC4xDQpWYXJ5OiBBY2NlcHQtRW5jb2RpbmcNCkNv
|
|
bnRlbnQtVHlwZTogdGV4dC9odG1sOyBjaGFyc2V0PUlTTy04ODU5LTENClRyYW5zZmVyLUVuY29k
|
|
aW5nOiBnemlwLCBjaHVua2VkDQoNCjE0DQofiwgIeZ6rQQADbGFsYWxhAMvJzA0KMTgNCktVMORS
|
|
yAHRRlwKEIYxFwAKAnFgGAAAAA0KMA0KDQo=
|
|
</data>
|
|
|
|
<datacheck>
|
|
HTTP/1.1 200 OK
|
|
Date: Mon, 29 Nov 2024 21:56:53 GMT
|
|
Server: Something-TE-friendly/0.1
|
|
Vary: Accept-Encoding
|
|
Content-Type: text/html; charset=ISO-8859-1
|
|
Transfer-Encoding: gzip, chunked
|
|
|
|
line 1
|
|
line 2
|
|
line 3
|
|
</datacheck>
|
|
|
|
</reply>
|
|
|
|
#
|
|
# Client-side
|
|
<client>
|
|
<features>
|
|
libz
|
|
</features>
|
|
<server>
|
|
http
|
|
</server>
|
|
<name>
|
|
HTTP GET gzip+chunked transfer-encoded content
|
|
</name>
|
|
<command>
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER --tr-encoding
|
|
</command>
|
|
</client>
|
|
|
|
#
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<protocol>
|
|
GET /%TESTNUMBER HTTP/1.1
|
|
Host: %HOSTIP:%HTTPPORT
|
|
User-Agent: curl/%VERSION
|
|
Accept: */*
|
|
Connection: TE
|
|
TE: gzip
|
|
|
|
</protocol>
|
|
</verify>
|
|
</testcase>
|