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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
