TooTallNate/Java-WebSocket — Issue #63: Safari 5.1.2 "Bad keys"
Author: Sixthly
Created: 2012-01-27 16:35:21+00:00
State: open

When Safari 5.1.2 on Mac OS X 10.7.2 attempts to connect to the Java-WebSocket "ChatServer" example, the following message is given:

> process(239): {GET / HTTP/1.1
> Upgrade: WebSocket
> Connection: Upgrade
> Host: localhost:8080
> Origin: http://localhost:8888
> Cookie: SQLiteManager_currentLangue=2
> Sec-WebSocket-Key1: 8 @ 27 77w $ 248 9
> Sec-WebSocket-Key2: 39 Z {6100%5756
>
> ?e2Z?u?}
> Aborting: draft null refuses handshake: Bad keys

Another example:

> process(237): {GET / HTTP/1.1
> Upgrade: WebSocket
> Connection: Upgrade
> Host: localhost:8080
> Origin: file://
> Cookie: SQLiteManager_currentLangue=2
> Sec-WebSocket-Key1: 2m 72 7 1j39 3 7z~0
> Sec-WebSocket-Key2: .K2] 45{5[95T5h89e _K8|S
>
> ???d'd}
> Aborting: draft null refuses handshake: Bad keys