[webkit-qt] websocket protocalls used in qt 4.7 and 4.8

Wijethilake Tharanga Tharanga.Wijethilake at digia.com
Thu Sep 29 05:20:51 PDT 2011


Right now , here is what I have:

Howdy fellows,
I have a question regarding qt webkit 
When I call in javascript var socket = new Websocket("ws://localhost:25899");

With Chrome 14 I get the following returned:
GET / HTTP/1.1
Upgrade: WebSocket
Connection: Upgrade
Host: localhost:25899
Origin: null
Sec-WebSocket-Key1: M2O 5sCU88?36 10 %zc7 6
Sec-WebSocket-Key2: 1534([ ^ 3t S W Kn3*\\n 74 3 '1

which are these specs: http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-10

With QtWebkit I get the following:

GET / HTTP/1.1
Upgrade: WebSocket
Connection: Upgrade
Host: localhost:25899
Origin: http://localhost:25899

I couldn't find the websocket specifications that match this.

Can you please let me know which protocol is used by QtWebkit in Qt 4.7 as we are trying to write a small web application and we want to support Qt webkit for our internal app.

Also would you be able to tell me what websocket protocol will be supported by the soon to be released QtWebKit with 4.8.

Thank you for your responses.


~Tharanga


More information about the webkit-qt mailing list