tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
Subject Re: GET and POST data in same request
Date Thu, 02 Dec 2010 22:36:53 GMT
On 02/12/2010 22:21, Larry wrote:
> Hello,
> I need to have an apache mod_rewrite pass a request ( which contains
> POST data ) along to my servlet with some GET parameters.
> I think when Tomcat sees the GET params, it invokes my servlet's doGet
> ( which annihilates my POST data ).
> I need to be able to access both the GET data from the request URL and
> the POST data from the body.
> Is this possible? Maybe its not tomcat's fault ;)
> Any insight is welcome, thanks.

The user agent needs to send this request using POST. Tomcat will merge
parameters from the request body with those in the URL as per the rules
in the Servlet spec.

If the response body is being dropped then the user agent is either
using GET or using POST and failing to set content type required for
Tomcat to parse the request body. Again, this is defined in the Servlet


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message