Results 1 to 1 of 1
Thread: Websoket handshake not working.
- 01-26-2013, 02:47 PM #1
Member
- Join Date
- Jan 2013
- Posts
- 2
- Rep Power
- 0
Websoket handshake not working.
Hi there,
I've been softly banging my head against my desk for long enough so i thought i might ask for some help...
I've been trying to establish a websoket connection between a chrome extension and a java server and i' got this far:
The client connects to server and sends handshake along the lines of:
The server then replies:Java Code:GET / HTTP/1.1 Upgrade: websocket Connection: Upgrade Host: localhost:4444 Origin: chrome-extension://gfndmmgdfjmdfknkdlmjmadlpjdogbmh Pragma: no-cache Cache-Control: no-cache Sec-WebSocket-Key: m2KMLKq3zbteS1pS0YPu5g== Sec-WebSocket-Version: 13 Sec-WebSocket-Extensions: x-webkit-deflate-frame
Then, nothing, I can't see the msg arriving at the client side and i can't send anything to the client anymore.Java Code:HTTP/1.1 101 Switching Protocols\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: qI/0aM9x3AC2E+fLwpdPJpkiMTs=\r\n\r\n
Any idea what i'm doing wrong? Thanks in advance. Smollett.
Similar Threads
-
Collisions are working & not working
By Jayayoh in forum Java 2DReplies: 1Last Post: 06-24-2011, 05:21 PM -
\n not working in GUI (working code, but \n isn't working)
By cc11rocks in forum New To JavaReplies: 2Last Post: 01-04-2011, 04:30 AM -
working with JC
By yuhobebbho in forum New To JavaReplies: 0Last Post: 02-10-2010, 11:22 PM -
Connect to HTTPS + SSL handshake failure
By jamojo in forum Advanced JavaReplies: 3Last Post: 06-25-2009, 11:04 PM -
Java mail problem(working in intranet,but not working in iternet)
By sundarjothi in forum Advanced JavaReplies: 8Last Post: 05-28-2008, 07:00 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks