On Mon, 2009-03-23 at 03:56 -0700, SaravananD wrote: > Hi Oleg, > > Thanks for your reply..I am facing issues when the content is chunked or > buffered. >
That's because this is the server side issue, which has nothing to do with HttpClient. > Below is my original issue. please provide your inputs on this > > I am using HTTPClient 3.0.1 for sending data to server. We are sending large > amount of XML datas and POST Method is used. > > InputStreamRequestEntity is used with parameters as > ByteArrayInputStream[Containing streamed datas] and content length. > > When Content size is around 10242048 bytes I am able to send request > successfully and getting response from server > Now content size is increased to 11150513 bytes and while executing we are > getting below exception. if the content size is around 10250000 there is > no issues but more than that exceptions are thrown > > Mar 17, 2009 10:27:46 AM org.apache.commons.httpclient.HttpMethodDirector > executeWithRetry > INFO: I/O exception (java.net.SocketException) caught when processing > request: Software caused connection abort: socket write error Server choked. Sort out server side issues first. Oleg > Mar 17, 2009 10:27:48 AM org.apache.commons.httpclient.HttpMethodDirector > executeWithRetry > INFO: Retrying request > java.lang.Exception: Unbuffered entity enclosing request can not be > repeated. > > I tried by setting entity repeatable as true by implementing request entity > but that doesnt work. How I can check that entity is repeatable?. > Changing the stream to buffered stream also no use whether this means that > entity is not repeatable? > > > whether this is due to increase in content size? > I checked by setting content length to CONTENT_LENGTH_AUTO but issue not > solved. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
