You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Hussein Vastani <va...@actenum.com> on 2004/12/14 20:21:59 UTC
Form content truncated
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
Re: Form content truncated
Posted by Hussein Vastani <va...@actenum.com>.
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
Re: Form content truncated
Posted by Oleg Kalnichevski <ol...@apache.org>.
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