1<testcase> 2<info> 3<keywords> 4WebSockets 5</keywords> 6</info> 7 8# 9# Sends a PING with overlong payload 10<reply> 11<data nocheck="yes" nonewline="yes"> 12HTTP/1.1 101 Switching to WebSockets 13Server: test-server/fake 14Upgrade: websocket 15Connection: Upgrade 16Something: else 17Sec-WebSocket-Accept: HkPsVga7+8LuxM4RGQ5p9tZHeYs= 18 19%hex[%19%7f%ff%30%30%30%30%30%30%30%30%30%30%30%30]hex% 20</data> 21# allow upgrade 22<servercmd> 23upgrade 24</servercmd> 25</reply> 26 27# 28# Client-side 29<client> 30# require debug for the forced CURL_ENTROPY 31<features> 32Debug 33ws 34</features> 35<server> 36http 37</server> 38<name> 39WebSockets, overlong PING payload 40</name> 41<tool> 42lib2302 43</tool> 44<command> 45ws://%HOSTIP:%HTTPPORT/%TESTNUMBER 46</command> 47</client> 48 49# 50# PONG with no data and the 32 bit mask 51# 52<verify> 53<protocol nocheck="yes" nonewline="yes"> 54GET /%TESTNUMBER HTTP/1.1 55Host: %HOSTIP:%HTTPPORT 56User-Agent: webbie-sox/3 57Accept: */* 58Upgrade: websocket 59Connection: Upgrade 60Sec-WebSocket-Version: 13 61Sec-WebSocket-Key: NDMyMTUzMjE2MzIxNzMyMQ== 62 63 64</protocol> 65# 56 == CURLE_RECV_ERROR 66<errorcode> 6756 68</errorcode> 69</verify> 70</testcase> 71