The problem was, that I can't log any WIFI-data with wireshark.
So I created a little web page which connected to the server.
I successfully connected to the server by appending the "username:password"-phrase, which has to be base64 encoded, at the URL. So my code looks like this:
this works fine on my web page but on CommandFusion the Socket will be instantly closed.
The data which i sended with my web page is:
Hypertext Transfer Protocol
GET /ws/dXNlcjpwYXNzd29yZA== HTTP/1.1\r\n
[Expert Info (Chat/Sequence): GET /ws/dXNlcjpwYXNzd29yZA== HTTP/1.1\r\n]
Request Method: GET
Request URI: /ws/dXNlcjpwYXNzd29yZA==
Request Version: HTTP/1.1
Upgrade: websocket\r\n
Connection: Upgrade\r\n
Host: 192.168.3.47\r\n
Origin: null\r\n
Sec-WebSocket-Key: SJLkEjbVkAIFbHUy3PevLA==\r\n
Sec-WebSocket-Version: 13\r\n
Sec-WebSocket-Extensions: x-webkit-deflate-frame\r\n
Cookie: devs=07216600960119371998_admin\r\n
the data which i received from the server is:
Hypertext Transfer Protocol
HTTP/1.1 101 Web Socket Protocol Handshake\r\n
[Expert Info (Chat/Sequence): HTTP/1.1 101 Web Socket Protocol Handshake\r\n]
Request Version: HTTP/1.1
Status Code: 101
Response Phrase: Web Socket Protocol Handshake
Upgrade: WebSocket\r\n
Connection: Upgrade\r\n
Sec-WebSocket-Origin: null\r\n
Sec-WebSocket-Accept: UuPU0iQS+5gUdiA2Jp2enLurhbc=\r\n
\r\n
With CommandFusion, I can't say how the connection establishes, because of the WIFI-problem with wireshark. I think I try to fix this in the next days and post my progress here.
btw I'd like to thank you for the great help!
Am Donnerstag, 11. Oktober 2012 13:40:38 UTC+2 schrieb Hades: