mirror of
https://github.com/curl/curl.git
synced 2026-04-11 12:01:42 +08:00
To formalize they are now XML-compliant (with some asterisks.) Also to help syntax highlighters work on them to make their content more readable. Also: - Delete empty comment decorations. - GHA/checksrc: simplify XML check. - runtests: fail to load test data with XML prolog missing. Follow-up tobfe6eb1c06#19927 Follow-up to87ba80a6dfCloses #19946
74 lines
1.0 KiB
XML
74 lines
1.0 KiB
XML
<?xml version="1.0" encoding="US-ASCII"?>
|
|
<testcase>
|
|
<info>
|
|
<keywords>
|
|
WebSockets
|
|
</keywords>
|
|
</info>
|
|
|
|
<client>
|
|
<name>
|
|
ws: Invalid fragmented PING
|
|
</name>
|
|
<features>
|
|
Debug
|
|
ws
|
|
</features>
|
|
<server>
|
|
http
|
|
</server>
|
|
<tool>
|
|
lib2700
|
|
</tool>
|
|
<command>
|
|
ws://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
|
</command>
|
|
<setenv>
|
|
CURL_WS_FORCE_ZERO_MASK=1
|
|
</setenv>
|
|
</client>
|
|
|
|
<reply>
|
|
<servercmd>
|
|
upgrade
|
|
</servercmd>
|
|
|
|
# Full list of frames: see 'verify.stdout' below
|
|
# A fragmented PING
|
|
<data nocheck="yes" nonewline="yes">
|
|
HTTP/1.1 101 Switching to WebSockets
|
|
Server: server/%TESTNUMBER
|
|
Upgrade: Websocket
|
|
Connection: Upgrade
|
|
Sec-WebSocket-Accept: HkPsVga7+8LuxM4RGQ5p9tZHeYs=
|
|
|
|
%hex[%09%02p1]hex%%hex[%80%02p2]hex%
|
|
</data>
|
|
</reply>
|
|
|
|
<verify>
|
|
|
|
# No frames
|
|
<protocol nonewline="yes">
|
|
|
|
</protocol>
|
|
|
|
# No frames
|
|
<stdout nonewline="yes">
|
|
|
|
</stdout>
|
|
|
|
# CURLE_RECV_ERROR
|
|
<errorcode>
|
|
56
|
|
</errorcode>
|
|
|
|
# Strip HTTP header from 'protocol'
|
|
<strip>
|
|
^GET /.*
|
|
^(Host|User-Agent|Accept|Upgrade|Connection|Sec-WebSocket-(Version|Key)): .*
|
|
^\s*$
|
|
</strip>
|
|
</verify>
|
|
</testcase>
|