mirror of
https://github.com/curl/curl.git
synced 2026-04-13 00:31:41 +08:00
To make special newlines more explicit and visible. Mostly in `<protocol>` sections, some in `<data*>` and `<upload>`. Reducing the number of `tests/data/test*`: - CRLF newlines from 21535 to 11337. - files with mixed newlines from 1335 to 707. Also delete empty `<protocol>` sections. Closes #19284
60 lines
928 B
Plaintext
60 lines
928 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
HTTP
|
|
HTTP GET
|
|
</keywords>
|
|
</info>
|
|
#
|
|
# Server-side
|
|
<reply>
|
|
<data nocheck="yes">
|
|
HTTP/1.1 200 funky chunky!
|
|
Server: fakeit/0.9 fakeitbad/1.0
|
|
Transfer-Encoding: chunked
|
|
Trailer: chunky-trailer
|
|
Connection: mooo
|
|
ETag: "asdf"
|
|
|
|
40
|
|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
|
30
|
|
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
|
|
21;heresatest=moooo
|
|
cccccccccccccccccccccccccccccccc
|
|
|
|
0
|
|
chunky-trailer: header data
|
|
|
|
</data>
|
|
</reply>
|
|
|
|
#
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
http
|
|
</server>
|
|
<name>
|
|
A non existing file with --etag-compare is just a blank
|
|
</name>
|
|
<command>
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER --etag-compare %LOGDIR/etag%TESTNUMBER
|
|
</command>
|
|
</client>
|
|
|
|
#
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<protocol crlf="yes">
|
|
GET /%TESTNUMBER HTTP/1.1
|
|
Host: %HOSTIP:%HTTPPORT
|
|
User-Agent: curl/%VERSION
|
|
Accept: */*
|
|
If-None-Match: ""
|
|
|
|
</protocol>
|
|
</verify>
|
|
|
|
</testcase>
|