• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4WebSockets
5</keywords>
6</info>
7
8#
9# Sends a PING + a TEXT with RSV1 set
10<reply>
11<data nocheck="yes" nonewline="yes">
12HTTP/1.1 101 Switching to WebSockets
13Server: test-server/fake
14Upgrade: websocket
15Connection: Upgrade
16Sec-WebSocket-Accept: HkPsVga7+8LuxM4RGQ5p9tZHeYs=
17
18%hex[%89%00%C1%05hello]hex%
19</data>
20# allow upgrade
21<servercmd>
22upgrade
23</servercmd>
24</reply>
25
26#
27# Client-side
28<client>
29# require debug for the forced CURL_ENTROPY
30<features>
31Debug
32ws
33</features>
34<server>
35http
36</server>
37<name>
38WebSockets unknown reserved bit set in frame header
39</name>
40<tool>
41lib%TESTNUMBER
42</tool>
43<command>
44ws://%HOSTIP:%HTTPPORT/%TESTNUMBER
45</command>
46</client>
47
48#
49# PONG with no data and the 32 bit mask
50#
51<verify>
52<protocol nocheck="yes" nonewline="yes">
53GET /%TESTNUMBER HTTP/1.1
54Host: %HOSTIP:%HTTPPORT
55User-Agent: webbie-sox/3
56Accept: */*
57Upgrade: websocket
58Connection: Upgrade
59Sec-WebSocket-Version: 13
60Sec-WebSocket-Key: NDMyMTUzMjE2MzIxNzMyMQ==
61
62%hex[%8a%808321]hex%
63</protocol>
64<stdout mode="text">
65Returned 56, should be 56.
66</stdout>
67</verify>
68</testcase>
69