mirror of
https://github.com/curl/curl.git
synced 2026-04-22 07:22:13 +03:00
There is no more mixed-newline file in the repository after this patch. Except for`.bat` and `.sln` files (4 in total), all files use LF newlines. Also: - `spacecheck.pl`: drop mixed-EOL exception for test data. - runtests: add option `-w` to check if test data has stray CR bytes in them. - build: enable the option above in test targets, except the CI-specific one where `spacecheck.pl` does this job already. - tested OK (with expected failures) in CI with stray CRs added. - cmake: enable option `-a` for the `tests` target. To continue testing after a failed test. Follow-up to63e9721b63#19313 Follow-up to6cf3d7b1b1#19318 Follow-up to4d2a05d3fe#19284 Closes #19347
68 lines
1.1 KiB
Text
68 lines
1.1 KiB
Text
<testcase>
|
|
<info>
|
|
<keywords>
|
|
HTTP
|
|
HTTP GET
|
|
HTTP/0.9
|
|
</keywords>
|
|
</info>
|
|
|
|
<reply>
|
|
<data nocheck="yes">
|
|
HTTP/1.1 999 OK%CR
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT%CR
|
|
Server: test-server/fake%CR
|
|
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT%CR
|
|
ETag: "21025-dc7-39462498"%CR
|
|
Accept-Ranges: bytes%CR
|
|
Content-Length: 6%CR
|
|
Connection: close%CR
|
|
Content-Type: text/html%CR
|
|
Funny-head: yesyes%CR
|
|
%CR
|
|
-foo-
|
|
</data>
|
|
</reply>
|
|
|
|
#
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
http
|
|
</server>
|
|
|
|
<name>
|
|
HTTP GET with 999 response code
|
|
</name>
|
|
<command>
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER --write-out '%{response_code}'
|
|
</command>
|
|
</client>
|
|
|
|
#
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<stdout crlf="headers" nonewline="yes">
|
|
HTTP/1.1 999 OK
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
|
Server: test-server/fake
|
|
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
|
|
ETag: "21025-dc7-39462498"
|
|
Accept-Ranges: bytes
|
|
Content-Length: 6
|
|
Connection: close
|
|
Content-Type: text/html
|
|
Funny-head: yesyes
|
|
|
|
-foo-
|
|
999
|
|
</stdout>
|
|
<protocol crlf="headers">
|
|
GET /%TESTNUMBER HTTP/1.1
|
|
Host: %HOSTIP:%HTTPPORT
|
|
User-Agent: curl/%VERSION
|
|
Accept: */*
|
|
|
|
</protocol>
|
|
</verify>
|
|
</testcase>
|