mirror of
https://github.com/curl/curl.git
synced 2026-06-19 00:45:40 +03:00
- `N byte` -> `N-byte` or `N bytes`. - INTERNALS.md: language tweaks. - schannel: language tweak in comment/error message. - socks_gssapi, socks_sspi: simplify composing an error message. (at a cost of 8 extra constant string bytes.) - m4/curl-compilers.m4: fix typo in link (in comment). - contrithanks.sh: fix indent, drop stray `;` terminator. - lib, src, tests: drop/fix a bunch of badwords. - fix typos in comments. - fix indent, stray spaces. Some of these spotted by GitHub Code Quality and Copilot Closes #22009
73 lines
1 KiB
XML
73 lines
1 KiB
XML
<?xml version="1.0" encoding="US-ASCII"?>
|
|
<testcase>
|
|
<info>
|
|
<keywords>
|
|
WebSockets
|
|
</keywords>
|
|
</info>
|
|
|
|
<client>
|
|
<name>
|
|
ws: Invalid oversized PONG
|
|
</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 126-byte-long PONG
|
|
<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[%8a%7e%00%7e]hex%%repeat[126 x _]%
|
|
</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>
|