xref: /curl/tests/data/test2303 (revision 18f1cd7a)
1<testcase>
2<info>
3<keywords>
4WebSockets
5</keywords>
6</info>
7
8#
9<reply>
10<data nocheck="yes" nonewline="yes">
11HTTP/1.1 200 Oblivious
12Server: test-server/fake
13Something: else
14Content-Length:  6
15
16hello
17</data>
18</reply>
19
20#
21# Client-side
22<client>
23# require debug for the forced CURL_ENTROPY
24<features>
25Debug
26ws
27</features>
28<server>
29http
30</server>
31<name>
32WebSockets but gets a 200 back
33</name>
34<tool>
35lib2302
36</tool>
37<command>
38ws://%HOSTIP:%HTTPPORT/%TESTNUMBER
39</command>
40</client>
41
42<verify>
43<protocol>
44GET /%TESTNUMBER HTTP/1.1
45Host: %HOSTIP:%HTTPPORT
46User-Agent: webbie-sox/3
47Accept: */*
48Upgrade: websocket
49Connection: Upgrade
50Sec-WebSocket-Version: 13
51Sec-WebSocket-Key: NDMyMTUzMjE2MzIxNzMyMQ==
52
53</protocol>
54# 22 == CURLE_HTTP_RETURNED_ERROR
55<errorcode>
5622
57</errorcode>
58</verify>
59</testcase>
60