4
我在libevent中實現了一個websocket服務器,雖然我沒有任何Chrome或Firefox的問題,但IE10我甚至無法建立連接。IE10在握手後關閉連接
這裏的握手:
IE10 Request:
GET /echo HTTP/1.1
Origin: 95.115.195.4
Sec-WebSocket-Key: rgPWUlUtk+h3CPWqk99OtA==
Connection: Upgrade
Upgrade: Websocket
Sec-WebSocket-Version: 8
User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)
Host: 95.115.195.4:5555
Cache-Control: no-cache
Server Response:
HTTP/1.1 101 Switching Protocols
Upgrade: Websocket
Connection: Upgrade
Sec-WebSocket-Accept: jGmgQ/jOvew8MU9o3bbqPG9PHlY=
Sec-WebSocket-Protocol: chat
的IE10調試器說: SCRIPT12152:WebSocket的錯誤:不正確的HTTP響應。狀態碼101
任何人都知道我在做什麼錯?
感謝
解決了!謝謝! – 2012-02-25 23:52:35