GO-V.ORG
As seen in

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

6 results across 6 corpora for Sec-WebSocket-Key header.

Encyclopedia 0

Developer library 6

WebSocket API (WebSockets)

elated HTTP headers The HTTP headers are used in the [WebSocket handshake](/docs/Web/API/WebSockets_API/Writing_WebSocket_servers#the_websocket_handshake): - Sec-WebSocket-Key - : An HTTP request header that contains a nonce from the client. This is used in the [WebSocket opening handshake](/docs/Web/API/WebSockets_API/Writing_WebSocket_servers#the_websocket_handshake) to verify that the client explicitly int

MDN Web Docs mirror · CC BY-SA 2.5 (MDN) · https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API

Writing a WebSocket server in Java

tern.compile("^GET").matcher(data); ``` Creating the response is easier than understanding why you must do it in this way. You must, 1. Obtain the value of _Sec-WebSocket-Key_ request header without any leading and trailing whitespace 2. Link it with "258EAFA5-E914-47DA-95CA-C5AB0DC85B11" 3. Compute SHA-1 and Base64 code of it 4. Write it back as value of _Sec-WebSocket-Accept_ response header as part of an HTTP r

Writing a WebSocket server in C#

of the Server handshake can be found in RFC 6455, section 4.2.2. For our purposes, we'll just build a simple response. You must: 1. Obtain the value of the "Sec-WebSocket-Key" request header without any leading or trailing whitespace 2. Concatenate it with "258EAFA5-E914-47DA-95CA-C5AB0DC85B11" (a special GUID specified by RFC 6455) 3. Compute SHA-1 and Base64 hash of the new value 4. Write the hash back as the va

Writing WebSocket servers

ersion **must** be 1.1 or greater, and the method **must** be `GET`): ```http GET /chat HTTP/1.1 Host: example.com:8000 Upgrade: websocket Connection: Upgrade Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ== Sec-WebSocket-Version: 13 ``` The client can solicit extensions and/or subprotocols here; see [Miscellaneous](#miscellaneous) for details. Also, common headers like User-Agent, Referer, Cookie, or authentication hea

HTTP headers

ket extensions supported by the client in preferred order. In responses, it indicates the extension selected by the server from the client's preferences. - Sec-WebSocket-Key - : Request header containing a key that verifies that the client explicitly intends to open a `WebSocket`. - Sec-WebSocket-Protocol - : In requests, this header indicates the sub-protocols supported by the client in preferred order.

MDN Web Docs mirror · CC BY-SA 2.5 (MDN) · https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers

Sec-WebSocket-Version header

hake). For the current protocol, the version is "13", as shown below. ```http GET /chat HTTP/1.1 Host: example.com:8000 Upgrade: websocket Connection: Upgrade Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ== Sec-WebSocket-Version: 13 ``` If the server supports version 13 of the protocol, then `Sec-WebSocket-Version` will not appear in the response. ## Specifications ## Browser compatibility ## See also - Sec-Web

JSON results · Services directory