mirror of
https://github.com/curl/curl.git
synced 2026-04-12 00:11:42 +08:00
To really verify the presence of the XML prolog, also in CI. - move the prolog check from `loadtest` to `checktest`. (load did a soft error, silently skipping the test instead of failing) - runtests: enable `-w` functionality permanently for all test targets, drop the option. It has no measurable performance impact. - test 798, 1665: add XML prolog. Follow-up tof0d277cb0eFollow-up tob5ea0736bb#19946 Follow-up to904e7ecb66#19347 Closes #19970
52 lines
808 B
XML
52 lines
808 B
XML
<?xml version="1.0" encoding="US-ASCII"?>
|
|
<testcase>
|
|
<info>
|
|
<keywords>
|
|
HTTP
|
|
</keywords>
|
|
</info>
|
|
|
|
# Server-side
|
|
<reply>
|
|
<data>
|
|
HTTP/1.1 200 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: swsclose
|
|
</data>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
http
|
|
</server>
|
|
<name>
|
|
HTTP with only headers and no final CRLF separator
|
|
</name>
|
|
<command>
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
|
</command>
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<protocol crlf="headers">
|
|
GET /%TESTNUMBER HTTP/1.1
|
|
Host: %HOSTIP:%HTTPPORT
|
|
User-Agent: curl/%VERSION
|
|
Accept: */*
|
|
|
|
</protocol>
|
|
<errorcode>
|
|
18
|
|
</errorcode>
|
|
</verify>
|
|
</testcase>
|