test2717 (991B)
1 <testcase> 2 <info> 3 <keywords> 4 WebSockets 5 </keywords> 6 </info> 7 8 <client> 9 <name> 10 ws: Invalid fragmented PONG 11 </name> 12 <features> 13 Debug 14 ws 15 </features> 16 <server> 17 http 18 </server> 19 <tool> 20 lib2700 21 </tool> 22 <command> 23 ws://%HOSTIP:%HTTPPORT/%TESTNUMBER 24 </command> 25 <setenv> 26 CURL_WS_FORCE_ZERO_MASK=1 27 </setenv> 28 </client> 29 30 <reply> 31 <servercmd> 32 upgrade 33 </servercmd> 34 35 # Full list of frames: see <verify.stdout> below 36 # A fragmented PONG 37 <data nocheck="yes" nonewline="yes"> 38 HTTP/1.1 101 Switching to WebSockets 39 Server: server/%TESTNUMBER 40 Upgrade: Websocket 41 Connection: Upgrade 42 Sec-WebSocket-Accept: HkPsVga7+8LuxM4RGQ5p9tZHeYs= 43 44 %hex[%0a%02p1]hex%%hex[%80%02p2]hex% 45 </data> 46 </reply> 47 48 <verify> 49 50 # No frames 51 <protocol nonewline="yes"> 52 53 </protocol> 54 55 # No frames 56 <stdout nonewline="yes"> 57 58 </stdout> 59 60 # CURLE_RECV_ERROR 61 <errorcode> 62 56 63 </errorcode> 64 65 # Strip HTTP header from <protocol> 66 <strip> 67 ^GET /.* 68 ^(Host|User-Agent|Accept|Upgrade|Connection|Sec-WebSocket-(Version|Key)): .* 69 ^\s*$ 70 </strip> 71 </verify> 72 </testcase>