mirror of
https://github.com/curl/curl.git
synced 2026-04-11 12:01:42 +08: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
91 lines
1.5 KiB
Plaintext
91 lines
1.5 KiB
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
HTTP
|
|
HTTP GET
|
|
HTTP CONNECT
|
|
HTTP proxy
|
|
HTTP proxy Basic auth
|
|
proxytunnel
|
|
multi
|
|
</keywords>
|
|
</info>
|
|
|
|
# Server-side
|
|
<reply>
|
|
<servercmd>
|
|
connection-monitor
|
|
</servercmd>
|
|
<connect crlf="headers">
|
|
HTTP/1.1 200 Mighty fine indeed
|
|
|
|
</connect>
|
|
<data>
|
|
HTTP/1.1 200 OK swsclose
|
|
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"
|
|
|
|
</data>
|
|
<datacheck>
|
|
HTTP/1.1 200 Mighty fine indeed%CR
|
|
%CR
|
|
HTTP/1.1 200 OK swsclose
|
|
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"
|
|
|
|
</datacheck>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
http
|
|
http-proxy
|
|
</server>
|
|
# tool is what to use instead of 'curl'
|
|
<tool>
|
|
lib%TESTNUMBER
|
|
</tool>
|
|
<features>
|
|
proxy
|
|
</features>
|
|
<name>
|
|
simple multi http:// through proxytunnel with authentication info
|
|
</name>
|
|
<command>
|
|
http://machine.%TESTNUMBER:%HTTPPORT/%TESTNUMBER %HOSTIP:%PROXYPORT
|
|
</command>
|
|
<file name="%LOGDIR/test%TESTNUMBER.txt">
|
|
foo
|
|
bar
|
|
bar
|
|
foo
|
|
moo
|
|
</file>
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<proxy crlf="headers">
|
|
CONNECT machine.%TESTNUMBER:%HTTPPORT HTTP/1.1
|
|
Host: machine.%TESTNUMBER:%HTTPPORT
|
|
Proxy-Authorization: Basic %b64[test%2520:ing%2541]b64%
|
|
Proxy-Connection: Keep-Alive
|
|
|
|
[DISCONNECT]
|
|
</proxy>
|
|
<protocol crlf="headers">
|
|
GET /%TESTNUMBER HTTP/1.1
|
|
Host: machine.%TESTNUMBER:%HTTPPORT
|
|
Authorization: Basic %b64[test:ing]b64%
|
|
Accept: */*
|
|
|
|
[DISCONNECT]
|
|
</protocol>
|
|
</verify>
|
|
</testcase>
|