Hi Trustin,
Thanks for the quick fixes.
Trustin Lee wrote:
3/ in the same state machine, the parameters of HTTP request are not
decoded (still figuring this one out though...)
What HTTP method are you using?
I'm currently using the GET method.
I think I found the problem. Request decoding is working as expected.
The issue is in HttpRequestEncoder. When encoding the URI, the
parameters set on the request are not appended to the URI's query.
Of course, this should apply to GET and HEAD methods only afaik.
The API is not really consistent here.
I expect to use HttpRequest.setParameter(key, value) regardless of the
HTTP method I use. It is then up to the codec to append it to query
string or not.
This may also imply that the getRequestUri() method should return an
up-to-date URI every time parameters are changed (if the method is GET
or HEAD).
hope it helps,
jeff