WebSockets
#
# Sends a PING + a TEXT with RSV1 set
HTTP/1.1 101 Switching to WebSockets
Server: test-server/fake
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: HkPsVga7+8LuxM4RGQ5p9tZHeYs=
%hex[%89%00%C1%05hello]hex%
# allow upgrade
upgrade
#
# Client-side
# require debug for the forced CURL_ENTROPY
Debug
ws
http
WebSockets unknown reserved bit set in frame header
lib%TESTNUMBER
ws://%HOSTIP:%HTTPPORT/%TESTNUMBER
#
# PONG with no data and the 32 bit mask
#
GET /%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: webbie-sox/3
Accept: */*
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Version: 13
Sec-WebSocket-Key: NDMyMTUzMjE2MzIxNzMyMQ==
%hex[%8a%808321]hex%
Returned 56, should be 56.