Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 75394 invoked from network); 15 Oct 2004 10:09:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Oct 2004 10:09:13 -0000 Received: (qmail 1878 invoked by uid 500); 15 Oct 2004 10:08:56 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 1781 invoked by uid 500); 15 Oct 2004 10:08:55 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 1758 invoked by uid 99); 15 Oct 2004 10:08:54 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of vinay.murthy@gmail.com designates 64.233.170.205 as permitted sender) Received: from [64.233.170.205] (HELO mproxy.gmail.com) (64.233.170.205) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 15 Oct 2004 03:08:54 -0700 DomainKey-Signature: a=rsa-sha1; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=Ccw2KT2r6cKvXesAeAew+FeqR2/+i7rL2P16W1yODJ4iXlvt0SN8NPl6q0umj9k9tuDfG1donFnDT5CC9WpENSBftRH31rRh8pPc4+KNknH+AQyCHHgrd0lCs06znf4nI3+bsXBtOiY7MrWykIY65J7eQtsf8T4BnbfmQKXo4Tg Received: by mproxy.gmail.com with SMTP id 73so27317rnl for ; Fri, 15 Oct 2004 03:08:52 -0700 (PDT) Received: by 10.38.81.49 with SMTP id e49mr153094rnb; Fri, 15 Oct 2004 03:08:51 -0700 (PDT) Received: by 10.39.1.66 with HTTP; Fri, 15 Oct 2004 03:08:51 -0700 (PDT) Message-ID: <6f3bfa704101503082d5e721@mail.gmail.com> Date: Fri, 15 Oct 2004 15:38:51 +0530 From: Vinay Murthy Reply-To: Vinay Murthy To: Oleg Kalnichevski , commons-user@jakarta.apache.org, commons-httpclient-dev@jakarta.apache.org Subject: Re: Connection timing out In-Reply-To: <6f3bfa704101421246114aa03@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <6f3bfa704101409316e7086a0@mail.gmail.com> <1097772648.13033.3.camel@localhost.localdomain> <6f3bfa70410140958559d129e@mail.gmail.com> <1097773343.13033.6.camel@localhost.localdomain> <6f3bfa704101421246114aa03@mail.gmail.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, Does httpClient have features to provide any kind of client-side caching of web objects ? For eg, incase of frequently visited sites that tend to have a lot of images on them , does httpClient cache them on the client-side ? Does it retrieve these objects everytime ? Do you think this feature needs to be implemented in a layer above httpClient ? Regards Vinay On Fri, 15 Oct 2004 09:54:33 +0530, Vinay Murthy wrote: > Hi Oleg, > > I guess upgrading to HttpClient 2.0.2 seems to work as far as the > connection timeout issue is concerned. Thanks for that.Was that an > issue in 2.0-rc2 ? > > But I guess, I seem to be having problems with regard to cookie > handling. I believe that the cookie that is sent by Yahoo! upon > signing in, is not being handled properly by my code ; as a result of > which it seems expired to the server. And hence I am led to the > "Verify Password" page. The httpclient page does mention about > Yahoo!'s cookies posing problems. Does the problem still persist? > > Secondly, I got the following log warning: > Oct 15, 2004 9:42:28 AM org.apache.commons.httpclient.HttpMethodBase > getResponseBody > WARNING: Going to buffer response body of large or unknown size. Using > getResponseAsStream instead is recommended. > > > > > Regards > Vinay > > On Thu, 14 Oct 2004 19:02:23 +0200, Oleg Kalnichevski wrote: > > Please upgrade to HttpClient 2.0.2 and retest. In the future please do > > send your response to the list > > > > Oleg > > > > > > > > On Thu, 2004-10-14 at 18:58, Vinay Murthy wrote: > > > Hi, > > > JRE => 1.4.2 > > > httpClient =>2.0-rc2 (.jar) > > > > > > Hope that helps, > > > > > > Regards > > > Vinay > > > > > > > > > > > > On Thu, 14 Oct 2004 18:51:17 +0200, Oleg Kalnichevski wrote: > > > > Vinay, > > > > What HttpClient and JRE version are you using? > > > > > > > > Oleg > > > > > > > > > > > > > > > > > > > > On Thu, 2004-10-14 at 18:31, Vinay Murthy wrote: > > > > > Hi, > > > > > I am using httpClient as a part of htmlUnit. I tried logging into my > > > > > mail account (Yahoo!), but unfortunately ended with an exception > > > > > trace: > > > > > java.net.ConnectException: Connection timed out: connect > > > > > at java.net.PlainSocketImpl.socketConnect(Native Method) > > > > > at java.net.PlainSocketImpl.doConnect(Unknown Source) > > > > > at java.net.PlainSocketImpl.connectToAddress(Unknown Source) > > > > > at java.net.PlainSocketImpl.connect(Unknown Source) > > > > > at java.net.Socket.connect(Unknown Source) > > > > > at java.net.Socket.connect(Unknown Source) > > > > > at java.net.Socket.(Unknown Source) > > > > > at java.net.Socket.(Unknown Source) > > > > > at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:105) > > > > > at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:663) > > > > > at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:661) > > > > > at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:529) > > > > > > > > > > How can work around this problem ? Can someboby help ? > > > > > > > > > > Regards > > > > > Vinay > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org > > > > > For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org