blob: 997acfad29e727fc35b8a4c4e69c9cfe3bad9d2a [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001<testcase>
2<info>
3<keywords>
4WebSockets
5</keywords>
6</info>
7
8#
9# Server-side
10<reply>
11<data nocheck="yes">
12HTTP/1.1 101 Switching to WebSockets swsclose
13Server: test-server/fake
14Upgrade: websocket
15Connection: Upgrade
16Sec-WebSocket-Accept: HkPsVga7+8LuxM4RGQ5p9tZHeYs=
17
18</data>
19# allow upgrade
20<servercmd>
21upgrade
22</servercmd>
23</reply>
24
25#
26# Client-side
27<client>
28# for the forced CURL_ENTROPY
29<features>
30debug
31ws
32</features>
33<server>
34http
35</server>
36 <name>
37WebSockets upgrade only
38 </name>
39 <command>
40ws://%HOSTIP:%HTTPPORT/%TESTNUMBER
41</command>
42</client>
43
44#
45# Verify data after the test has been "shot"
46<verify>
47<protocol nocheck="yes">
48GET /%TESTNUMBER HTTP/1.1
49Host: %HOSTIP:%HTTPPORT
50User-Agent: curl/%VERSION
51Accept: */*
52Upgrade: websocket
53Connection: Upgrade
54Sec-WebSocket-Version: 13
55Sec-WebSocket-Key: NDMyMTUzMjE2MzIxNzMyMQ==
56
57</protocol>
58<errorcode>
5952
60</errorcode>
61</verify>
62</testcase>