Skip to content

Commit

Permalink
[e] (0) The intro handshake section forgot Cookie.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@4826 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Mar 5, 2010
1 parent 45784c7 commit 0e60e7c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
10 changes: 7 additions & 3 deletions complete.html
Original file line number Diff line number Diff line change
Expand Up @@ -67499,8 +67499,12 @@ <h6 id=opening-handshake><span class=secno>10.3.4.1.3 </span>Opening handshake</
the order is not meaningful.</p>

<p>Additional fields are used to select options in the WebSocket
protocol. The only option available in this version is the
subprotocol selector, <code title=http-sec-websocket-protocol><a href=#sec-websocket-protocol>Sec-WebSocket-Protocol</a></code>:</p>
protocol. The only options available in this version are the
subprotocol selector, <code title=http-sec-websocket-protocol><a href=#sec-websocket-protocol>Sec-WebSocket-Protocol</a></code>,
and <code title=http-cookie>Cookie</code>, which can used for
sending cookies to the server (e.g. as an authentication
mechanism). The <code title=http-sec-websocket-protocol><a href=#sec-websocket-protocol>Sec-WebSocket-Protocol</a></code>
field takes an arbitrary string:</p>

<pre>Sec-WebSocket-Protocol: chat</pre>

Expand All @@ -67509,7 +67513,7 @@ <h6 id=opening-handshake><span class=secno>10.3.4.1.3 </span>Opening handshake</
intends to use. The server echoes this field in its handshake to
indicate that it supports that subprotocol.</p>

<p>The other fields in the handshake is all security-related. The
<p>The other fields in the handshake are all security-related. The
<code title=http-host>Host</code> field is used to protect against
DNS rebinding attacks and to allow multiple domains to be served
from one IP address.</p>
Expand Down
11 changes: 8 additions & 3 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -75875,9 +75875,14 @@ Connection: Upgrade</pre>
the order is not meaningful.</p>

<p>Additional fields are used to select options in the WebSocket
protocol. The only option available in this version is the
protocol. The only options available in this version are the
subprotocol selector, <code
title="http-sec-websocket-protocol">Sec-WebSocket-Protocol</code>:</p>
title="http-sec-websocket-protocol">Sec-WebSocket-Protocol</code>,
and <code title="http-cookie">Cookie</code>, which can used for
sending cookies to the server (e.g. as an authentication
mechanism). The <code
title="http-sec-websocket-protocol">Sec-WebSocket-Protocol</code>
field takes an arbitrary string:</p>

<pre>Sec-WebSocket-Protocol: chat</pre>

Expand All @@ -75886,7 +75891,7 @@ Connection: Upgrade</pre>
intends to use. The server echoes this field in its handshake to
indicate that it supports that subprotocol.</p>

<p>The other fields in the handshake is all security-related. The
<p>The other fields in the handshake are all security-related. The
<code title="http-host">Host</code> field is used to protect against
DNS rebinding attacks and to allow multiple domains to be served
from one IP address.</p>
Expand Down

0 comments on commit 0e60e7c

Please sign in to comment.