Return-Path: Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: (qmail 64336 invoked from network); 19 May 2008 12:49:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 May 2008 12:49:16 -0000 Received: (qmail 12413 invoked by uid 500); 19 May 2008 12:49:17 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 12071 invoked by uid 500); 19 May 2008 12:49:16 -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 12060 invoked by uid 99); 19 May 2008 12:49:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 May 2008 05:49:16 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 May 2008 12:48:30 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Jy4nD-0004xk-U8 for httpclient-users@hc.apache.org; Mon, 19 May 2008 05:48:43 -0700 Message-ID: <17316672.post@talk.nabble.com> Date: Mon, 19 May 2008 05:48:43 -0700 (PDT) From: stanlick To: httpclient-users@hc.apache.org Subject: Re: Pattern for batch file transfers In-Reply-To: <1211134484.6856.8.camel@ubuntu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: stanlick@gmail.com References: <17278654.post@talk.nabble.com> <1211123003.6856.2.camel@ubuntu> <17304140.post@talk.nabble.com> <1211134484.6856.8.camel@ubuntu> X-Virus-Checked: Checked by ClamAV on apache.org Oleg -- Are there any books or meaningful tutorials describing HttpClient? The JavaDoc is bare and the sample code I have found has hardly any comments in it. I'm prepared to read and learn on my own if I could only find a source. Peace, Scott olegk wrote: > > On Sun, 2008-05-18 at 08:25 -0700, stanlick wrote: >> Thanks brother. I had looked at that example and was wondering how that >> send >> technique differed from: >> >> Part[] parts = { new FilePart(f.getName(), new FilePartSource(f)) }; >> filePost.setRequestEntity(new MultipartRequestEntity(parts, >> filePost.getParams())); >> >> The FilePartSource appears to stream the request. Also, I can't quite >> tell >> how to specify the MIME types for each respective file "part" > > http://hc.apache.org/httpclient-3.x/apidocs/org/apache/commons/httpclient/methods/multipart/PartBase.html#setContentType(java.lang.String) > > >> nor a way to >> specify separators. >> > > HttpClient 3.x does not support custom part boundaries. This can be done > with HttpClient 4.0 only > > Hope this helps > > Oleg > > >> Peace, >> Scott >> >> >> >> >> olegk wrote: >> > >> > On Fri, 2008-05-16 at 09:17 -0700, stanlick wrote: >> >> Greetings -- >> >> >> >> I am searching for a generic solution for transferring files between >> >> peers >> >> using HttpClient and FileUpload. I see a myriad of techniques, but >> would >> >> really appreciate a solution that: >> >> >> >> 1) streams in/out (don't want to worry about OutOfMemoryErrors) >> >> 2) imposes no size limits >> >> 3) supports any payload >> >> >> > >> > Please see >> > >> > >> http://hc.apache.org/httpclient-3.x/performance.html#Request_Response_entity_streaming >> > >> > >> >> Can someone point me in the right direction? Is HttpClient 4.x the >> >> preferred version? Is it still beta? >> >> >> > >> > HttpClient 4.0 is still ALPHA. So, if HttpClient 3.x works for you, >> > stick to it. >> > >> > Oleg >> > >> > >> > >> >> Thanks, >> >> Scott >> > >> > >> > --------------------------------------------------------------------- >> > 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 > > > -- View this message in context: http://www.nabble.com/Pattern-for-batch-file-transfers-tp17278654p17316672.html Sent from the HttpClient-User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org