commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vinay Murthy <vinay.mur...@gmail.com>
Subject Re: Connection timing out
Date Fri, 15 Oct 2004 10:08:51 GMT
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 <vinay.murthy@gmail.com> 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 <olegk@apache.org> 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 <olegk@apache.org>
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.<init>(Unknown Source)
> > > > >        at java.net.Socket.<init>(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


Mime
View raw message