Return-Path: Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: (qmail 75634 invoked from network); 6 Oct 2009 12:40:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Oct 2009 12:40:37 -0000 Received: (qmail 80325 invoked by uid 500); 6 Oct 2009 12:40:37 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 80275 invoked by uid 500); 6 Oct 2009 12:40:37 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 80255 invoked by uid 99); 6 Oct 2009 12:40:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Oct 2009 12:40:36 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [92.42.190.144] (HELO ok2cons2.nine.ch) (92.42.190.144) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Oct 2009 12:40:26 +0000 Received: from [192.168.1.102] (77-58-234-86.dclient.hispeed.ch [77.58.234.86]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ok2cons2.nine.ch (Postfix) with ESMTPSA id 369A14BA3E1 for ; Tue, 6 Oct 2009 14:39:35 +0200 (CEST) Message-ID: <4ACB3A82.4020304@apache.org> Date: Tue, 06 Oct 2009 14:39:30 +0200 From: Oleg Kalnichevski User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: HttpClient User Discussion Subject: Re: Not able to upload bigger file (max size 4kb successful) References: <23548792.post@talk.nabble.com> <4A10204B.7030405@apache.org> <25752702.post@talk.nabble.com> In-Reply-To: <25752702.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org ghanchakkar wrote: > olegk > Thanks for your previous reply. > It has been long that I am facing this issue, and not able to find any > solution to this. Iplanet team has come back asking me to fix httpclient > because internet explorer is successfully able to upload any size file to > same i-planet web server without any issues, Great. Likewise, I can easily advise Iplanet team to fix Iplanet, because HttpClient is know to work well with other, better maintained, HTTP servers. but my httpclient is getting > exception (as described in my previous email) from server because server is > closing connection. > Can you suggest why i.e. is able to upload files with any file size without > any issues and httpclient not? There are lots of reasons for that. HttpClient may generate slightly different HTTP messages than IE, and iPlanet may react differently to different message compositions. (1) consider upgrading to HttpClient 4.0 first (2) capture HTTP messages generated by IE (3) capture HTTP messages generated by HttpClient (4) compare them (5) tweak HttpClient to generate HTTP more compatible with those generated by IE Oleg any place I should look at the code ? or > anything else that comes in your mind ? > > Manoj > > > olegk wrote: >> ghanchakkar wrote: >>> I am using httpclient 3.1 with jre 1.5_15. I am able to post https >>> request >>> and able to get replys from iplanet web server with no issues, except >>> when I >>> try to upload file having size from than 9kb. Here is the log. >>> >>> Note: It seems connection close occurs at one particular point of the >>> file >>> but when I open the file there is no special chars or anything of that >>> sort >>> at that point of the file. Also note that this happens with every file no >>> matter what the contents are. >>> >>> here is the log >>> >> ... >> >>> 14:25:16.915 DEBUG [main] HttpMethodDirector.java:404 [ClientId:] >>> Closing the connection. >>> 14:25:16.915 DEBUG [main] HttpConnection.java:1148 [ClientId:] >>> enter HttpConnection.close() >>> 14:25:16.915 DEBUG [main] HttpConnection.java:1215 [ClientId:] >>> enter HttpConnection.closeSockedAndStreams() >>> 14:25:16.915 INFO [main] HttpMethodDirector.java:439 [ClientId:] >>> I/O exception (java.net.SocketException) caught when processing request: >>> Software caused connection abort: socket write error >>> 14:25:16.915 DEBUG [main] HttpMethodDirector.java:443 [ClientId:] >>> Software caused connection abort: socket write error >>> java.net.SocketException: Software caused connection abort: socket write >>> error >>> at java.net.SocketOutputStream.socketWrite0(Native Method) >>> at java.net.SocketOutputStream.socketWrite(Unknown Source) >>> at java.net.SocketOutputStream.write(Unknown Source) >> >> The exception has been caused by the server shutting down the connection >> prematurely most likely due to a error or configuration issue on the >> server side. This has nothing to do with HttpClient. >> >> Oleg >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org >> For additional commands, e-mail: httpclient-users-help@hc.apache.org >> >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org