tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <mgai...@hotmail.com>
Subject Re: Parsing keyvalue pairs in POST data
Date Sat, 19 Aug 2006 13:07:36 GMT
I assume you are front-ending with Apache..?

I would use HTTP 1.1 instead of (HTTP 1.0 where length must be specified beforehand)

Here are some keyword values in httpd.conf that will help you overcome your current limitations

You can adjust the limit on the size of any field via
LimitRequestFieldSize

You can adjust the limit on the size of the request line via 
LimitRequestLine

You can adjust the limit on the size of the HTTP body sent via text/xml
LimitXMLRequestBody 

documenation available at
http://httpd.apache.org/docs/2.0/mod/core.html

Martin --
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



----- Original Message ----- 
From: "Santosh Puranshettiwar" <santosh@wirkle.com>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Saturday, August 19, 2006 8:03 AM
Subject: Re: Parsing keyvalue pairs in POST data


> Well, there's another problem.
> HttpServletRequest.getParameter() is unable to parse the key-value pairs 
> in the http message body if the the total content-length is greater that 
> 2016.
> 
> Any ideas? Please.
> Santosh.
> 
> Santosh Puranshettiwar wrote:
>> Managed to digg it.
>> Had to set Content-Type=application/x-www-form-urlencoded
>>
>> Santosh Puranshettiwar wrote:
>>> Hello,
>>>
>>> How does tomcat parse the key-value pairs sent in a Http Request as 
>>> POST data? I am unable to read the parameters using the 
>>> HttpServletRequest.getParameter() method. Parameters are being sent 
>>> by a J2ME application.
>>>
>>> Tell me if more details are required.
>>>
>>> Thanks alot.
>>> Santosh.
>>>
>>> ---------------------------------------------------------------------
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
>
Mime
View raw message