robbiehanson / CocoaHTTPServer

A small, lightweight, embeddable HTTP server for Mac OS X or iOS applications
Other
5.6k stars 1.31k forks source link

Secure Web Socket function not working? #149

Open angus2651 opened 9 years ago

angus2651 commented 9 years ago

Hi all,

Could Anybody use secure web socket function successfully in Secure Web Socket Server?

The Log:

only receive the following Received HTTP request: { GET /WebSocketTest2.js HTTP/1.1 Host: localhost:56732 Accept-Encoding: gzip, deflate Accept: / User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11) AppleWebKit/601.1.56 (KHTML, like Gecko) Version/9.0 Safari/601.1.56 Accept-Language: en-us Referer: https://localhost:56732/ Connection: keep-alive }

but does not receive the following Received HTTP request: { GET /service HTTP/1.1 Host: localhost:50265 Origin: http://localhost:50265 Sec-WebSocket-Key: aYix+3vh6i3fr2CVWFtZCg== Upgrade: websocket Pragma: no-cache Sec-WebSocket-Version: 13 Sec-WebSocket-Extensions: x-webkit-deflate-frame User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11) AppleWebKit/601.1.56 (KHTML, like Gecko) Version/9.0 Safari/601.1.56 Cache-Control: no-cache Connection: Upgrade }

Thank you.