Stop reading http response

2014-04-14 Thread Olivier Lamy
Hi, In case of 200 (or any other return code), I'd like to be able to not read headers body because I simply don't care as it's not an error and I want to avoid fill memory with the content. Is there any was to do that? (with non async or async) Thanks, -- Olivier Lam

Re: Internal change with last 4.2.3 with URI ?

2013-03-04 Thread Olivier Lamy
so BTW _ is not valid according to http://www.ietf.org/rfc/rfc2396.txt So forget my question :-) 2013/3/4 Olivier Lamy : > Hi Folks, > recently Maven Wagon upgraded to last 4.2.3 client. > > Now url containing '_' doesn't work anymore. > Exception says : > >

Internal change with last 4.2.3 with URI ?

2013-03-04 Thread Olivier Lamy
.com"; When testing: URI uri = new URI("https://foo_bar.online.com";); String host = uri.getHost(); host is null so I understand the complain :-). Is there any related change to use URI ? Do I have any workaround ? Thanks -- Olivier Lamy Talend: http://coders.talend.

Re: Http Get retrieve data larger than Integer.MAX_VALUE

2013-01-28 Thread Olivier Lamy
2013/1/28 Oleg Kalnichevski : > On Mon, 2013-01-28 at 23:42 +0100, Olivier Lamy wrote: >> Hi, >> Is there any way to retrieve a file which is larger than Integer.MAX_VALUE ? >> ContentLengthInputStream has a cast which can be bigger than >> Integer.MAX_VALUE >>

Http Get retrieve data larger than Integer.MAX_VALUE

2013-01-28 Thread Olivier Lamy
Hi, Is there any way to retrieve a file which is larger than Integer.MAX_VALUE ? ContentLengthInputStream has a cast which can be bigger than Integer.MAX_VALUE if (pos + len > contentLength) { len = (int) (contentLength - pos); } Thanks, -- Olivier Lamy Talend: http://coders.talend.com h

SSLv3 support

2012-10-26 Thread Olivier Lamy
Hi, Is there any way to handle SSLv3 (see related maven issue https://jira.codehaus.org/browse/MNG-5363 ) ? Or what is the best way to achieve that ? Thanks for any advice -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy

Re: Retry on ConnectTimeoutException

2010-01-07 Thread Olivier Lamy
Cause() to return ConnectTimeoutException Thanks, -- Olivier 2010/1/7 Oleg Kalnichevski : > On Thu, 2010-01-07 at 11:14 +0100, Olivier Lamy wrote: >> Hi, >> Sure, I will. >> If I want to provide a patch do I have to do it on the 4.0.x branch or trunk >> ? >> &g

Re: Retry on ConnectTimeoutException

2010-01-07 Thread Olivier Lamy
Hi, Sure, I will. If I want to provide a patch do I have to do it on the 4.0.x branch or trunk ? Thanks, -- Olivier 2010/1/6 Oleg Kalnichevski : > Olivier Lamy wrote: >> >> Sure. >> It's just I found this more elegant/readable code using the retry >> handler mec

Re: Retry on ConnectTimeoutException

2010-01-06 Thread Olivier Lamy
Sure. It's just I found this more elegant/readable code using the retry handler mechanism rather than writing catch/loop as with http client 3.x. -- Olivier 2010/1/6 Ken Krugler : > > On Jan 6, 2010, at 12:49pm, Olivier Lamy wrote: > >> NO. >> ConnectionTimeOutExce

Re: Retry on ConnectTimeoutException

2010-01-06 Thread Olivier Lamy
root problem. > > -- Ken > > > On Jan 6, 2010, at 12:27pm, Olivier Lamy wrote: > >> Thanks for reply. >> Yes I already use this for this type of exception. >> But this doesn't catch the ConnectionTimeOut. >> >> -- >> Olivier >> >

Re: Retry on ConnectTimeoutException

2010-01-06 Thread Olivier Lamy
is "Read timeout" exception , > >    GetMethod   httpGet = new GetMethod(url); >    httpGet.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, new > DefaultHttpMethodRetryHandler(10, true)); > > Is there another way to handle this exception? > > Khosro. > > &g

Retry on ConnectTimeoutException

2010-01-06 Thread Olivier Lamy
Hi, I'm using http-client 4.0.1. Is there any way to use HttpRequestRetryHandler to handle retry on ConnectTimeoutException ? (I did it with http client 3 ) Thanks, -- Olivier - To unsubscribe, e-mail: httpclient-users-unsubscr.

Re: is HTTPCLIENT-841 really fixed ?

2009-09-11 Thread Olivier Lamy
Yes I see that look to be already logged : http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6865265. -- Olivier 2009/9/11 Oleg Kalnichevski : > On Fri, Sep 11, 2009 at 05:15:31PM +0200, Olivier Lamy wrote: >> It was new stuff we introduced in new version which break under heavy load.

Re: is HTTPCLIENT-841 really fixed ?

2009-09-11 Thread Olivier Lamy
It was new stuff we introduced in new version which break under heavy load. So I have to search somewhere else :-(. Thanks for your time, -- Olivier 2009/9/11 Oleg Kalnichevski : > On Fri, Sep 11, 2009 at 04:29:20PM +0200, Olivier Lamy wrote: >> Hi Folks, >> I have added a comme

is HTTPCLIENT-841 really fixed ?

2009-09-11 Thread Olivier Lamy
Hi Folks, I have added a comment and attached a jvm error pid. Is there any know issue regarding deadlock issue with the final 4.0 ? (with heavy load). Thanks -- Olivier - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.

Re: Self-signed certs and a replacement for EasySSLProtocolSocketFactory

2009-02-10 Thread Olivier Lamy
Hi, You can have a look at the continuum code which do this with httpclient 4.x. [1] Line with comment : // https scheme schemeRegistry.register( new Scheme( "https", new EasySSLSocketFactory(), 443 ) ); HTH, -- Olivier [1] https://svn.apache.org/repos/asf/continuum/trunk/continuu

Re: Exception Unable to establish route. (with a custom ssl socket factory)

2008-12-02 Thread Olivier Lamy
2008/12/2 Oleg Kalnichevski <[EMAIL PROTECTED]>: > Olivier Lamy wrote: >> >> Hi, >> I'm trying to write a custom ssl socket to handle self signed >> certificates). >> >> I have the following exception : >> Caused by: java.lang.Ille

Exception Unable to establish route. (with a custom ssl socket factory)

2008-12-01 Thread Olivier Lamy
Hi, I'm trying to write a custom ssl socket to handle self signed certificates). I have the following exception : Caused by: java.lang.IllegalStateException: Unable to establish route. planned = HttpRoute[{}->https://localhost:443] current = HttpRoute[{s}->https://localhost:443] Any ideas ? Thank

Re: Aggregate javadoc on the site and Url Validator

2008-08-23 Thread Olivier Lamy
2008/8/23 Oleg Kalnichevski <[EMAIL PROTECTED]>: > On Sat, 2008-08-23 at 00:06 +0200, Olivier Lamy wrote: >> Hi, >> Is there any plan to published an aggregated javadoc [1] with the next >> release ? (currently it's hard to naviguate in all modules or I >

Aggregate javadoc on the site and Url Validator

2008-08-22 Thread Olivier Lamy
Hi, Is there any plan to published an aggregated javadoc [1] with the next release ? (currently it's hard to naviguate in all modules or I haven't found it :-) in the site ). Second question : is there class which can validate my url (as boolean validate(String url) ) ? And is there a class to ext

Re: [POLL] Logging toolkit for HttpClient 4.x

2008-06-02 Thread Olivier Lamy
Hi, [X] migrate to SLF4J Thanks, -- Olivier 2008/6/2 Oleg Kalnichevski <[EMAIL PROTECTED]>: > Folks, > > We are currently considering whether we should continue using > commons-logging or migrate to SLF4J or java.util.logging. Please let us > what your preference is. We are going to make the fin