#32 Winstone (v0.9.9) fails to get request parameters

open
nobody
None
5
2008-05-19
2008-05-19
Anonymous
No

Hi,

Try this inside some Web app on a GET request with a query string :
req.getInputStream();
req.getParameterNames();

You won't get the parameters !

My knowledge is that when you get the body (Reader or InputStream), you won't be able to get additional parameters in POST, but you should get those in the query string, above all if the method is GET.

There is a useful page about this :
http://java.boot.by/wcd-guide/ch01s02.html
(just before the "Headers" section)

So, I have tested with Tomcat that does return my parameters, but Winstone doesn't.

Kind regards,
Philippe Poulard.

Discussion


Log in to post a comment.