Re: Problem disabling BASIC authentication

2008-07-29 Thread Sabarivasan Viswanathan
Thanks as always to a prompt response that answers all my questions. Sabari On Tue, Jul 29, 2008 at 5:14 AM, Oleg Kalnichevski <[EMAIL PROTECTED]> wrote: > Sabarivasan Viswanathan wrote: > >> Hello, >> >> I am having trouble disabling every scheme except DIGEST and sending >> credentials preempt

Connecting to a proxy hosted on SSL socket

2008-07-29 Thread Seriously
I need to connect to a proxy that requires authentication over SSL. The connections that I'm making across the proxy are http, so I'm not actually tunneling _through_ a proxy, but using https to authenticate _at_ the proxy. The httpclient methods that I've found for connecting to a proxy allow me

Re: Pool running out of connections

2008-07-29 Thread Oleg Kalnichevski
Joan Balagueró wrote: Hello, Then, I understand that idle connections are in ESTABLISHED state. I could try: this.ictt.setTimeoutInterval(1000); this.ictt.setConnectionTimeout(1); This should eliminate all established connections every second. Yes, it should As I told you our problem i

Re: Problem disabling BASIC authentication

2008-07-29 Thread Oleg Kalnichevski
Sabarivasan Viswanathan wrote: Hello, I am having trouble disabling every scheme except DIGEST and sending credentials preemptively. What I see when I use Wireshark is that the first HTTP request sends credentials in BASIC mode. The server sends a 401 challenge after which the client sends the

Re: Specifying HTTP version in HTTP Client (without using HttpProtocolParams's static methods)

2008-07-29 Thread Oleg Kalnichevski
Subhash Chandran wrote: Hi. How do I specify the HTTP version to use in HTTP Client? params.setParameter(CoreProtocolPNames.PROTOCOL_VERSION, version); The example in the site uses static methods in: org.apache.http.params.HttpProtocolParams I do not want to control this parameter using

Re: DIGEST and BASIC authentication API

2008-07-29 Thread Oleg Kalnichevski
Subhash Chandran wrote: Hi, I recently moved RESTClient ( http://code.google.com/p/rest-client/ ) from Commons HTTP to HTTP client. Previously I was using BASIC and DIGEST authentication using the Commons API. Now the example provided: http://svn.apache.org/repos/asf/httpcomponents/httpclient/

RE: Pool running out of connections

2008-07-29 Thread Joan Balagueró
Hello, Then, I understand that idle connections are in ESTABLISHED state. I could try: this.ictt.setTimeoutInterval(1000); this.ictt.setConnectionTimeout(1); This should eliminate all established connections every second. As I told you our problem is that, with our app, we don't know why conne

Re: Expected null behaviour of cookie.getDomain()/cookie.getPath() ?

2008-07-29 Thread Oleg Kalnichevski
Laurent Perez wrote: Hi I'm using commons httpclient to perform a server side request, triggered by a client (a real browser). Once the server side request is done, I'm copying the server client cookies to the client one using response.addCookie(servercookie) : this works as expected, my client

Re: Pool running out of connections

2008-07-29 Thread Oleg Kalnichevski
Joan Balagueró wrote: Hello, We're using "IdleConnectionTimeoutThread". The code is the following: this.objHttp = new HttpClient(new MultiThreadedHttpConnectionManager()); this.ictt = new IdleConnectionTimeoutThread(); this.ictt.addConnectionManager(this.objHttp.getHttpConnectionManager()); th

Re: Tunneled HTTPS connections through HTTP proxies, via the CONNECT method.

2008-07-29 Thread Oleg Kalnichevski
Jon Dixon wrote: Greetings, I have a question on "Tunneled HTTPS connections through HTTP proxies, via the CONNECT method" feature. I can successfully establish a connection to the HTTP proxy with the Connect method. But now, how do I use this connection to send Gets and Posts to