Re: close all active connections of httpclient at a given instant.

2009-04-21 Thread Oleg Kalnichevski
On Mon, Apr 20, 2009 at 10:57:22AM -0400, Rakesh Sinha wrote: For a particular case where I am using a http client reference ( multi-threaded context ) and would like to close and release all the active connections at a given instant. I had written the code as -

Re: Can servers block programmatic form submissions?

2009-04-21 Thread Oleg Kalnichevski
On Mon, Apr 20, 2009 at 01:03:16PM -0400, Klein, Stephanie [USA] wrote: Hi, All, I'm writing an application to log into a website via a form. I've tried many different ways, but each time, I get re-directed to a page saying I'm being redirected to an authentication service on another

Re: Porting Axis2 using commons-httpclient 3.1 to httpclient 4.0

2009-04-21 Thread Oleg Kalnichevski
On Mon, Apr 20, 2009 at 05:07:34PM -0400, Jeudy, Guillaume wrote: Thanks Oleg your replies are very useful. The axis2 issue is known but nobody is addressing it, I might be able to supply a patch for that. Regarding point 5. I now use a ResponseHandler passed to httpClient.execute()

Re: question abt persistent connections in httpcomponents-client-4.0-beta2

2009-04-21 Thread Oleg Kalnichevski
On Mon, Apr 20, 2009 at 03:10:22PM -0700, Pankaj Gupta wrote: Hi, We have client code taken from the example file ClientMultiThreadedExecution.java and we have the client talking to Apache backend. We have noticed that the client makes a brand new connection on every request. What we

Re: HttpClient performance

2009-04-21 Thread HockeyDave
I wouldn't want to. I'm not pointing out that anything is wrong with HttpCore. I'm just pointing out that your test case has a problem in its code. This test case code will throw a nullpointerexception when you fail to receive a response so maybe you'll want to protect your test case by

Re: HttpClient performance

2009-04-21 Thread sebb
On 21/04/2009, HockeyDave david_peterson4...@yahoo.com wrote: I wouldn't want to. I'm not pointing out that anything is wrong with HttpCore. I'm just pointing out that your test case has a problem in its code. This test case code will throw a nullpointerexception when you fail to

Re: HttpClient : host did not accept the connection within timeout of 5000 ms

2009-04-21 Thread sebb
On 21/04/2009, Christian Gendreau cgendr...@ctecworld.com wrote: Hi, I'm using httpclient 3.1 to access a custom WebService from a Java program. Sometimes, I got a HttpClient error that says The host /did not accept/ the connection within timeout of /5000/ ms. The error pop at random time

Re: HttpClient : host did not accept the connection within timeout of 5000 ms

2009-04-21 Thread Christian Gendreau
I will take a look on the server. Do you know if the correct way to release the connection on the client side is PostMethod.releaseConnection() in HttpClient 3.1 ? The client open a lot of connections, maybe they are not closed correctly. sebb wrote: On 21/04/2009, Christian Gendreau

RE: Can servers block programmatic form submissions?

2009-04-21 Thread Klein, Stephanie [USA]
First, thank you for taking the time to respond to my question. I really appreciate it. I downloaded a browser sniffer program, but when it's running, the website I'm trying to log into won't load properly (via the browser). I find this highly improbable. I can not think of a way for a

RE: Can servers block programmatic form submissions?

2009-04-21 Thread mnenchev
sorry just testing -- View this message in context: http://www.nabble.com/Can-servers-%22block%22-programmatic-form-submissions--tp23140751p23157972.html Sent from the HttpClient-User mailing list archive at Nabble.com. - To

mime-boundary headers

2009-04-21 Thread Richard Jones
Hi Folks, Apologies if this is a newbie question; I'm a long time user of httpclient for basic purposes, but am being stumped this week by a more difficult requirement, and wonder if anyone can help. I need to assemble a multi-part request, consisting of some normal http headers, an xml

Re: Can servers block programmatic form submissions?

2009-04-21 Thread mnenchev
Hi, i am new with this mailing lists stuff. Excuse me for spaming this topic, but i dont know what else to do. I am subscribed fro this mail list(i receive mails and i can post in other threads, but i can't post my thread :(. I tried many things, i wrote to the support, nothing I am getting

E-mail bounced as spam (was Re: Can servers block programmatic form submissions?)

2009-04-21 Thread sebb
On 21/04/2009, mnenchev nenchev.mari...@gmail.com wrote: Hi, i am new with this mailing lists stuff. Excuse me for spaming this topic, but i dont know what else to do. I am subscribed fro this mail list(i receive mails and i can post in other threads, but i can't post my thread :(. I

Re: E-mail bounced as spam (was Re: Can servers block programmatic form submissions?)

2009-04-21 Thread mnenchev
ok, i tried to send mail to the support, but seems that something happened. I can't understand what i am missing. May be it is obvious but not for me and that is why i decided to spam some thread, excuse me. I will try to search other ways to solve my problem with this http client. Regards.

HttpClient 4: Disable Default Header

2009-04-21 Thread Taneeda
Hi at all, Currently I am working with the httpclient framework at work. I am programming an application for automatically testing http products. To test a proband, i need to disable the default header (host, connection) in the httpclient framework. Is it possible to disable the adding of the