hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hussein Vastani <vast...@actenum.com>
Subject Re: Form content truncated
Date Wed, 15 Dec 2004 20:07:48 GMT
Oleg,
Right on! Thankyou very much. It was a Jetty problem. Jetty seems to 
restrict post parameter sizes (configurable).

cheers!
Hussein

Oleg Kalnichevski wrote:

>Hussein,
>
>To me this looks like a server-side server. HttpClient imposes no limit
>on the size of POST request parameters. I would also recommend using so
>called "raw" HTTP POST instead of url-encoded HTTP POST. You can see an
>example of sending raw XML data using HttpClient here:
>
>http://cvs.apache.org/viewcvs.cgi/jakarta-
>commons/httpclient/src/examples/PostXML.java?
>rev=1.10.2.1&only_with_tag=HTTPCLIENT_2_0_BRANCH&view=markup
>
>Hope this helps
>
>Oleg
> 
>
>
>On Tue, 2004-12-14 at 11:21 -0800, Hussein Vastani wrote:
>  
>
>>Hi,
>>First of all, many thanks for an excellent project!
>>
>>I am using HttpClient 2.02 for a web-based transactional system in which 
>>two servers talk to each other using XML over HTTP. I am using 
>>HttpClient to send messages and servlets to respond. The messages can 
>>get pretty large. I am using PostMethod to send messages to the server 
>>with the xml payload included in the POST as a request parameter. It 
>>works just fine for small xml messages, but for large messages I get the 
>>following warning from HTTPClient:
>>
>>WARN!! Form content truncated
>>
>>And rightly so. My JAXB code on the serverside throws an exception 
>>because many trailing tags are missing.
>>
>>Is there a limit on the size of a POST request parameter? Is it 
>>configurable? I want to avoid writing directly to the request's inputstream.
>>
>>Thankyou:
>>Hussein Vastani.
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
>
>.
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message