1*6236dae4SAndroid Build Coastguard Worker<testcase> 2*6236dae4SAndroid Build Coastguard Worker<info> 3*6236dae4SAndroid Build Coastguard Worker<keywords> 4*6236dae4SAndroid Build Coastguard WorkerWebSockets 5*6236dae4SAndroid Build Coastguard Worker</keywords> 6*6236dae4SAndroid Build Coastguard Worker</info> 7*6236dae4SAndroid Build Coastguard Worker 8*6236dae4SAndroid Build Coastguard Worker# 9*6236dae4SAndroid Build Coastguard Worker# Sends a PING with overlong payload 10*6236dae4SAndroid Build Coastguard Worker<reply> 11*6236dae4SAndroid Build Coastguard Worker<data nocheck="yes" nonewline="yes"> 12*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 101 Switching to WebSockets 13*6236dae4SAndroid Build Coastguard WorkerServer: test-server/fake 14*6236dae4SAndroid Build Coastguard WorkerUpgrade: websocket 15*6236dae4SAndroid Build Coastguard WorkerConnection: Upgrade 16*6236dae4SAndroid Build Coastguard WorkerSomething: else 17*6236dae4SAndroid Build Coastguard WorkerSec-WebSocket-Accept: HkPsVga7+8LuxM4RGQ5p9tZHeYs= 18*6236dae4SAndroid Build Coastguard Worker 19*6236dae4SAndroid Build Coastguard Worker%hex[%19%7f%ff%30%30%30%30%30%30%30%30%30%30%30%30]hex% 20*6236dae4SAndroid Build Coastguard Worker</data> 21*6236dae4SAndroid Build Coastguard Worker# allow upgrade 22*6236dae4SAndroid Build Coastguard Worker<servercmd> 23*6236dae4SAndroid Build Coastguard Workerupgrade 24*6236dae4SAndroid Build Coastguard Worker</servercmd> 25*6236dae4SAndroid Build Coastguard Worker</reply> 26*6236dae4SAndroid Build Coastguard Worker 27*6236dae4SAndroid Build Coastguard Worker# 28*6236dae4SAndroid Build Coastguard Worker# Client-side 29*6236dae4SAndroid Build Coastguard Worker<client> 30*6236dae4SAndroid Build Coastguard Worker# require debug for the forced CURL_ENTROPY 31*6236dae4SAndroid Build Coastguard Worker<features> 32*6236dae4SAndroid Build Coastguard WorkerDebug 33*6236dae4SAndroid Build Coastguard Workerws 34*6236dae4SAndroid Build Coastguard Worker!hyper 35*6236dae4SAndroid Build Coastguard Worker</features> 36*6236dae4SAndroid Build Coastguard Worker<server> 37*6236dae4SAndroid Build Coastguard Workerhttp 38*6236dae4SAndroid Build Coastguard Worker</server> 39*6236dae4SAndroid Build Coastguard Worker<name> 40*6236dae4SAndroid Build Coastguard WorkerWebSockets, overlong PING payload 41*6236dae4SAndroid Build Coastguard Worker</name> 42*6236dae4SAndroid Build Coastguard Worker<tool> 43*6236dae4SAndroid Build Coastguard Workerlib2302 44*6236dae4SAndroid Build Coastguard Worker</tool> 45*6236dae4SAndroid Build Coastguard Worker<command> 46*6236dae4SAndroid Build Coastguard Workerws://%HOSTIP:%HTTPPORT/%TESTNUMBER 47*6236dae4SAndroid Build Coastguard Worker</command> 48*6236dae4SAndroid Build Coastguard Worker</client> 49*6236dae4SAndroid Build Coastguard Worker 50*6236dae4SAndroid Build Coastguard Worker# 51*6236dae4SAndroid Build Coastguard Worker# PONG with no data and the 32 bit mask 52*6236dae4SAndroid Build Coastguard Worker# 53*6236dae4SAndroid Build Coastguard Worker<verify> 54*6236dae4SAndroid Build Coastguard Worker<protocol nocheck="yes" nonewline="yes"> 55*6236dae4SAndroid Build Coastguard WorkerGET /%TESTNUMBER HTTP/1.1 56*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT 57*6236dae4SAndroid Build Coastguard WorkerUser-Agent: webbie-sox/3 58*6236dae4SAndroid Build Coastguard WorkerAccept: */* 59*6236dae4SAndroid Build Coastguard WorkerUpgrade: websocket 60*6236dae4SAndroid Build Coastguard WorkerConnection: Upgrade 61*6236dae4SAndroid Build Coastguard WorkerSec-WebSocket-Version: 13 62*6236dae4SAndroid Build Coastguard WorkerSec-WebSocket-Key: NDMyMTUzMjE2MzIxNzMyMQ== 63*6236dae4SAndroid Build Coastguard Worker 64*6236dae4SAndroid Build Coastguard Worker 65*6236dae4SAndroid Build Coastguard Worker</protocol> 66*6236dae4SAndroid Build Coastguard Worker# 56 == CURLE_RECV_ERROR 67*6236dae4SAndroid Build Coastguard Worker<errorcode> 68*6236dae4SAndroid Build Coastguard Worker56 69*6236dae4SAndroid Build Coastguard Worker</errorcode> 70*6236dae4SAndroid Build Coastguard Worker</verify> 71*6236dae4SAndroid Build Coastguard Worker</testcase> 72