Re: disable automatic reason phrase lookup

2011-10-14 Thread Ken Hausam
Yes. Thank you for the reply. Just realized that this wasn't the problem. The problem is between the chair and keyboard. :) --- On Fri, 10/14/11, Oleg Kalnichevski wrote: From: Oleg Kalnichevski Subject: Re: disable automatic reason phrase lookup To: kah_12...@yahoo.com Cc: httpclient-users@

Re: disable automatic reason phrase lookup

2011-10-14 Thread Oleg Kalnichevski
On Fri, 2011-10-14 at 10:24 -0700, Ken Hausam wrote: > I would like instructions on how to setup a custom reason phrase catalog. > Specifically, I would like to disable use of the reason phrase lookup catalog > and have the actual reason phrase returned from the server available to me > via the

Re: Interactive CredentialsProvider

2011-10-14 Thread Oleg Kalnichevski
On Fri, 2011-10-14 at 08:19 -0700, AlexanderKitaev wrote: > Hello! > > I have encountered the following problem: > > Request is sent and receives 401 back with keep-alive enabled and keep-alive > timeout set to 15 seconds: > > 401 HTTP ... > Keep-Alive: true > Connection: keep-alive=15 ... > >

Re: Setting up a delay between requests to a host

2011-10-14 Thread Oleg Kalnichevski
On Fri, 2011-10-14 at 16:06 +0200, Jordi Domingo Borràs wrote: > Hi all, > > I'm using the latest version of HttpClient. > > I've set it up with ccm.setDefaultMaxPerRoute(1) but I also need to > establish a delay between requests for some hosts. > > Is there any fast way to do so? If not, your

Re: What is the preferred way to override host name resolution in HC 4.1?

2011-10-14 Thread Vasile Alin
Alternatively you can inspire from the code available in 4.2: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/conn/DnsResolver.java http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/imp

Re: What is the preferred way to override host name resolution in HC 4.1?

2011-10-14 Thread Vasile Alin
On 14 October 2011 18:58, Matt Solnit wrote: > Hi everyone.  In HC 4.0, the way that a host name is converted to an > InetAddress object could be overridden by passing a custom HostNameResolver > implementation to the socket factory.  It looks like in HC 4.1, this is > deprecated.  What is the

disable automatic reason phrase lookup

2011-10-14 Thread Ken Hausam
I would like instructions on how to setup a custom reason phrase catalog. Specifically, I would like to disable use of the reason phrase lookup catalog and have the actual reason phrase returned from the server available to me via the API. I found some documentation on BasicHttpResponse constru

What is the preferred way to override host name resolution in HC 4.1?

2011-10-14 Thread Matt Solnit
Hi everyone. In HC 4.0, the way that a host name is converted to an InetAddress object could be overridden by passing a custom HostNameResolver implementation to the socket factory. It looks like in HC 4.1, this is deprecated. What is the preferred way of customizing host name resolution? I

Interactive CredentialsProvider

2011-10-14 Thread AlexanderKitaev
Hello! I have encountered the following problem: Request is sent and receives 401 back with keep-alive enabled and keep-alive timeout set to 15 seconds: 401 HTTP ... Keep-Alive: true Connection: keep-alive=15 ... Then my custom CredentialsProvider implementation is called and it may take more

Setting up a delay between requests to a host

2011-10-14 Thread Jordi Domingo Borràs
Hi all, I'm using the latest version of HttpClient. I've set it up with ccm.setDefaultMaxPerRoute(1) but I also need to establish a delay between requests for some hosts. Is there any fast way to do so? If not, your suggestions are greatly appreciated. thanks a lot! Jordi

Commons logging in HttpClient (OSGi) throws ClassNotFoundException

2011-10-14 Thread Oliver Zemann
I'm currently developing an application which should handle plugins. Everything works fine except one plugin, which makes use of the osgi'd version of httpclient. I google'd alot and didn't found something useful that tells me how to fix this. i also posted this on http://www.coderanch.com/t/555730

Re: HttpCore: is there an example for opening HTTPS connections (client side) in the same vein as "ElementalHttpGet.java" ?

2011-10-14 Thread Oleg Kalnichevski
On Thu, 2011-10-13 at 16:14 -0700, Cardona, Julian wrote: > > Hi! > > I've used the code samples from "ElementalHttpGet" and > "ElementalHttpPost" for my basic HTTP'ing needs without > a glitch so far. Now I need to open an HTTPS connection > and am not sure how to modify tho