Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 48401 invoked from network); 30 Aug 2005 15:56:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Aug 2005 15:56:04 -0000 Received: (qmail 32080 invoked by uid 500); 30 Aug 2005 15:56:03 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 32068 invoked by uid 500); 30 Aug 2005 15:56:03 -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 32055 invoked by uid 99); 30 Aug 2005 15:56:03 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Aug 2005 08:56:03 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of karthik@apple.com designates 17.254.13.22 as permitted sender) Received: from [17.254.13.22] (HELO mail-out3.apple.com) (17.254.13.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Aug 2005 08:56:16 -0700 Received: from mailgate2.apple.com (a17-128-100-204.apple.com [17.128.100.204]) by mail-out3.apple.com (8.12.11/8.12.11) with ESMTP id j7UFtxj8008393 for ; Tue, 30 Aug 2005 08:55:59 -0700 (PDT) Received: from relay1.apple.com (relay1.apple.com) by mailgate2.apple.com (Content Technologies SMTPRS 4.3.17) with ESMTP id for ; Tue, 30 Aug 2005 08:55:59 -0700 Received: from [17.219.193.31] (vpn-scv-x1-31.apple.com [17.219.193.31]) by relay1.apple.com (8.12.11/8.12.11) with ESMTP id j7UFtvfi003483 for ; Tue, 30 Aug 2005 08:55:58 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v733) In-Reply-To: <6722427F-873F-4664-9ED0-C9D7248906C7@apple.com> References: <6722427F-873F-4664-9ED0-C9D7248906C7@apple.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <1887F0CF-4A10-4ADF-8BC2-E991CF6D4A8B@apple.com> Content-Transfer-Encoding: 7bit From: Karthik Subject: Re: Java Object Serialization and Tomcat Basic Authentication Incompatibility? Date: Tue, 30 Aug 2005 21:30:32 +0530 To: HttpClient User Discussion X-Mailer: Apple Mail (2.733) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Looks like I might be able to answer my own question. I used httpclient 3.0 rc3 and made the following changes to the client code: ByteArrayRequestEntity output = new ByteArrayRequestEntity (buf); HttpClient client = new HttpClient(); client.getState().setCredentials( new AuthScope(null, 8080,null), new UsernamePasswordCredentials("iss", "iss") ); String url = "http://localhost:8080/httpclient/httpclient"; PostMethod method = new PostMethod(url); method.setRequestEntity(output); //method.setRequestContentLength((int)buf.length); method.setRequestHeader("Content-Type", "application/octet- stream"); method.setRequestHeader("Connection", "Keep-Alive"); method.setDoAuthentication( true ); and stuff seems to work. Thanks, Karthik --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-user-help@jakarta.apache.org