Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 43793 invoked from network); 19 Jun 2006 15:53:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Jun 2006 15:53:42 -0000 Received: (qmail 30573 invoked by uid 500); 19 Jun 2006 15:52:00 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 29777 invoked by uid 500); 19 Jun 2006 15:51:55 -0000 Mailing-List: contact httpclient-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: "HttpClient User Discussion" Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-user@jakarta.apache.org Received: (qmail 27106 invoked by uid 99); 19 Jun 2006 15:51:41 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jun 2006 08:51:41 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [80.253.114.181] (HELO mx1.arishi.com) (80.253.114.181) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jun 2006 08:51:40 -0700 Received: from localhost (localhost [127.0.0.1]) by mx1.arishi.com (Postfix) with ESMTP id 2CFF7222B for ; Mon, 19 Jun 2006 16:53:28 +0100 (BST) Received: from mx1.arishi.com ([127.0.0.1]) by localhost (mx1.arishi.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 65506-15 for ; Mon, 19 Jun 2006 16:53:27 +0100 (BST) Received: from [10.0.1.20] (unknown [207.138.125.40]) by mx1.arishi.com (Postfix) with ESMTP for ; Mon, 19 Jun 2006 16:53:27 +0100 (BST) Message-ID: <4496C7F6.1020408@arishi.com> Date: Mon, 19 Jun 2006 16:51:18 +0100 From: Philip MacIver User-Agent: Thunderbird 1.5.0.4 (X11/20060516) MIME-Version: 1.0 To: HttpClient User Discussion Subject: Re: HTTP PUT References: <44969BFD.5050903@arishi.com> <4496AAA7.6080705@dubioso.net> In-Reply-To: <4496AAA7.6080705@dubioso.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at arishi.com X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N What I really want to know is how to add the content body to the request after I have got the 100-continue, because at the moment when I try and do that it doesn't add the file. And I am not sure how you do that, and I cannot find an examples on the web at all. Roland Weber wrote: > Hello Philip, > >> (and only then) should the file upload start. My problem is that at the >> moment whether the username/password is right or wrong the file upload >> happens and if the credentials are wrong it get discarded. Now this >> isn't a problem with small files but this application will be dealing >> with files 100s of MB large so it will cause unneeded delay and file >> uploading if I can't change. > > you've already enabled the expect-continue handshake. If the server > still doesn't verify the credentials before sending the "continue", > you'll have to split your actions into two requests: the first to > make sure that the credentials are ok, the second for the upload. > You could/should also complain to whomever it is that implemented > the server that it doesn't work as it should. Note however that the > HTTP specification does not *require* servers to check credentials > before sending the "continue". It only suggests that they should. > > hope that helps, > Roland > > --------------------------------------------------------------------- > 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