60 lines
1 KiB
Plaintext
60 lines
1 KiB
Plaintext
|
<testcase>
|
||
|
<info>
|
||
|
<keywords>
|
||
|
WebSockets
|
||
|
</keywords>
|
||
|
</info>
|
||
|
|
||
|
#
|
||
|
# Sends three 4097 bytes TEXT frames, as one single message
|
||
|
<reply>
|
||
|
<data nocheck="yes">
|
||
|
HTTP/1.1 101 Switching to WebSockets
|
||
|
Server: test-server/fake
|
||
|
Upgrade: websocket
|
||
|
Connection: Upgrade
|
||
|
Something: else
|
||
|
Sec-WebSocket-Accept: HkPsVga7+8LuxM4RGQ5p9tZHeYs=
|
||
|
|
||
|
%hex[%01%7e%10%01]hex%%repeat[256 x helothisisdaniel]%
|
||
|
%hex[%01%7e%10%01]hex%%repeat[256 x helothisisdaniel]%
|
||
|
%hex[%81%7e%10%01]hex%%repeat[256 x helothisisdaniel]%
|
||
|
</data>
|
||
|
# allow upgrade
|
||
|
<servercmd>
|
||
|
upgrade
|
||
|
</servercmd>
|
||
|
</reply>
|
||
|
|
||
|
#
|
||
|
# Client-side
|
||
|
<client>
|
||
|
# require debug for the forced CURL_ENTROPY
|
||
|
<features>
|
||
|
debug
|
||
|
ws
|
||
|
</features>
|
||
|
<server>
|
||
|
http
|
||
|
</server>
|
||
|
<name>
|
||
|
WebSocket curl_ws_recv() loop reading three larger frames
|
||
|
</name>
|
||
|
<tool>
|
||
|
lib%TESTNUMBER
|
||
|
</tool>
|
||
|
<command>
|
||
|
ws://%HOSTIP:%HTTPPORT/%TESTNUMBER %LOGDIR/save%TESTNUMBER
|
||
|
</command>
|
||
|
</client>
|
||
|
|
||
|
#
|
||
|
<verify>
|
||
|
<file name="%LOGDIR/save%TESTNUMBER">
|
||
|
%repeat[256 x helothisisdaniel]%
|
||
|
%repeat[256 x helothisisdaniel]%
|
||
|
%repeat[256 x helothisisdaniel]%
|
||
|
</file>
|
||
|
</verify>
|
||
|
</testcase>
|