<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000099">
Ian Hickson wrote:
<blockquote
 cite="mid:Pine.LNX.4.62.0807031747350.17498@hixie.dreamhostps.com"
 type="cite">
  <pre wrap="">Many years ago I wrote a draft for how to do full-duplex communication 
from a Web page. Over the years we've received much feedback on this 
TCPConnection API. I've now completely rewritten the relevant section and 
given it a new name, Web Sockets:

   <a class="moz-txt-link-freetext" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#network">http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#network</a>

If there are any security issues with this proposal, or if it fails to 
achieve its goals (discussed below), or fails to handle a case you care 
about, then please don't hesitate to send feedback to the list!

  </pre>
</blockquote>
I am just concern about the way the protocol is specified. When I read
the notes it is obvious the communication is actually an HTTP
communication. Let's say I am a browser  developer. Let's say I have to
enhance my already fully armed browser with all the support for HTTP
protocol and proxy/HTTP authentication, cookies, fixed many security
issues etc. It would be reasonable to use my HTTP implementation and
build ws/wss client protocol on top of it. Problem is that spec counts
with exact byte compare but my implementation might possibly change
headers order or HTTP version (to higher one). This would violate the
WHATWG spec but the request according to HTTP protocol would still be
correct.<br>
<br>
This might make the implementation (and therefor also adoption) of this
technology more complicated for browser developers.<br>
<br>
Why exactly is in the spec intention to do exact byte-to-byte match? To
allow very easy implementation using scripts?<br>
<br>
<br>
Thanks<br>
-hb-<br>
</body>
</html>