Ok. I think I have found the problem. It seem that the server (it is not
mine) needs the Origin header (as seen in
http://en.wikipedia.org/wiki/WebSocket). I have sniffed the connection
and I got:
-->GET /mtgox HTTP/1.1
-->Upgrade: websocket
-->Connection: Upgrade
-->Sec-WebSocket-Key: nEJQhC8gaOEWyHtj00tOnA==
-->Host:
websocket.mtgox.com
-->Sec-WebSocket-Origin:
http://websocket.mtgox.com
-->Sec-WebSocket-Version: 13
<--HTTP/1.1 403 Forbidden
How can i set that? Or how do I change the Sec-WebSocket-Origin to Origin?
Thanx a lot!
An3
El 30-05-2013 13:00, Tim Fox escribi�ソス:
>> El 30-05-2013 11:58, Tim Fox escribi�ソス:
>>> On 30/05/13 16:44, Andres Junge wrote:
>>>> Where? I'm using vertx 2 beta2.
>>>
>>> Examples are here
https://github.com/vert-x/vertx-examples
>>>
>>> But looking at your code, the problem is you're using an absolute url.
>>>
>>> It doesn't work like that - you set the host and port on the client
>>> object, and use a relative url when connecting.
>>>> I can�ソスt find any examples.
>>>>
>>>> Thanx for the reply
>>>> Andres
>>>>
>>>> El 30-05-2013 11:22, Tim Fox escribi�ソス:
>>>>>> El 29-05-2013 22:08, Andres Junge escribi�ソス: