You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Martin Grigorov <mg...@apache.org> on 2014/01/29 12:44:58 UTC
Request parameters in HandshakeRequest
Hi,
Apologies in advance if this is for users@.
Should javax.websocket.server.HandshakeRequest#getParameterMap() contain
the parameters from the query string ?
There is javax.websocket.server.HandshakeRequest#getQueryString() but I
don't see how WebSocket request can be done with POST method so I this the
parameter map should contain the parsed query string, no ?
In the voted 8.0.0 release the map is empty when there is non-empty query
string.
Thanks!
Martin Grigorov
Wicket Training and Consulting
Re: Request parameters in HandshakeRequest
Posted by Martin Grigorov <mg...@apache.org>.
On Wed, Jan 29, 2014 at 1:06 PM, Mark Thomas <ma...@apache.org> wrote:
> On 29/01/2014 11:44, Martin Grigorov wrote:
> > Hi,
> >
> > Apologies in advance if this is for users@.
> >
> > Should javax.websocket.server.HandshakeRequest#getParameterMap() contain
> > the parameters from the query string ?
>
> It should.
>
> > There is javax.websocket.server.HandshakeRequest#getQueryString() but I
> > don't see how WebSocket request can be done with POST method so I this
> the
> > parameter map should contain the parsed query string, no ?
>
> RFC6455 requires that only GET is used.
>
> > In the voted 8.0.0 release the map is empty when there is non-empty query
> > string.
>
> Mark
>
False alarm.
The problem was in my code. Found it while creating a demo app.
Thanks!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
Re: Request parameters in HandshakeRequest
Posted by Mark Thomas <ma...@apache.org>.
On 29/01/2014 11:44, Martin Grigorov wrote:
> Hi,
>
> Apologies in advance if this is for users@.
>
> Should javax.websocket.server.HandshakeRequest#getParameterMap() contain
> the parameters from the query string ?
It should.
> There is javax.websocket.server.HandshakeRequest#getQueryString() but I
> don't see how WebSocket request can be done with POST method so I this the
> parameter map should contain the parsed query string, no ?
RFC6455 requires that only GET is used.
> In the voted 8.0.0 release the map is empty when there is non-empty query
> string.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org