Stop reading http response

2014-04-15 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 Lamy Ecetera: http

Internal change with last 4.2.3 with URI ?

2013-03-04 Thread Olivier Lamy
: 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.com http://twitter.com/olamy | http

Re: Http Get retrieve data larger than Integer.MAX_VALUE

2013-01-28 Thread Olivier Lamy
2013/1/28 Oleg Kalnichevski ol...@apache.org: 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 if (pos + len contentLength

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
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 ol...@apache.org: Olivier Lamy wrote: Sure. It's just I found this more elegant/readable code using the retry handler mechanism rather than writing

Re: Retry on ConnectTimeoutException

2010-01-07 Thread Olivier Lamy
() to return ConnectTimeoutException Thanks, -- Olivier 2010/1/7 Oleg Kalnichevski ol...@apache.org: 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 ? Thanks, -- Olivier Trunk. Oleg

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:

Re: Retry on ConnectTimeoutException

2010-01-06 Thread Olivier Lamy
);    httpGet.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, new DefaultHttpMethodRetryHandler(10, true)); Is there another way to handle this exception? Khosro. From: Olivier Lamy ol...@apache.org To: httpclient-users@hc.apache.org Sent: Wed

Re: Retry on ConnectTimeoutException

2010-01-06 Thread Olivier Lamy
: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 2010/1/6 Khosro Asgharifard khosro_quest...@yahoo.com: Hi all, Olivier , Maybe i could not answer your question but i have one question

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 kkrugler_li...@transpac.com: On Jan 6, 2010, at 12:49pm, Olivier Lamy wrote: NO. ConnectionTimeOutException can

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:

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 ol...@apache.org: 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

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]

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 ?

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 haven't found it :-) in the site ). That would

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