Re: PostMethod 's recycle method has problem

2004-06-11 Thread Himanshu Thube
Hi Christopher Well thats the main problem. When my code comes to asynchPost.recycle() in code below the program hangs !! I am giving some code below to give an idea. This is not the original code though. Does anybody know whats wrong here ?? while(myflag) { if(asyncState!=null) {

RE: [newbie-question] Port Management for HttpClient

2004-06-11 Thread bagas
I am changing HttpConnection.open() Bye changing code line : socket = socketFactory.createSocket(host, port); become like : (portIter is a class field type int) socket = socketFactory.createSocket(host, port, InetAddress.getByName(localhost), 2 + (portIter++ % 1)); and it works much

DO NOT REPLY [Bug 29439] - Credentials ignored if realm specified in preemptive authentication

2004-06-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=29439. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.

Re: PostMethod 's recycle method has problem

2004-06-11 Thread Ortwin Glück
Himanshu Thube wrote: Thanks for all your answers for my questions till now. I have a problem with PostMethod. When I reuse the same method it gives a exception that PostMethod needs to be recycled. So I had put a check with help of hasbeenUsed() method of PostMethod and trying to recycle the

RE: PostMethod 's recycle method has problem

2004-06-11 Thread Kalnichevski, Oleg
Himanshu, Try setting socket timeout to a non-zero value. HttpMethod#recycle among many things calls HttpMethod#releaseConnection which in its turn attempts to reads the remaining response content to make sure that connection reusable. If the socket timeout is not set, releaseConnection may

Re: [newbie-question] Port Management for HttpClient

2004-06-11 Thread Ortwin Glück
bagas wrote: What Platform are you on? Windows XP (but I might change the platform for the real deployment) And this is the JVM : java version 1.4.1_02 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06) Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode) Can you provide

RE: HttpClient 2.0 problems

2004-06-11 Thread Kalnichevski, Oleg
Arturo, unable to find line starting with 'HTTP' error is reported (1) when response (status line, to be exact) sent by the server is malformed (2) if HttpClient fails to correctly parse the status line sent by the server (3) when the target server accepts connection but then fails to send any

Re: HttpClient 2.0 problems

2004-06-11 Thread Ortwin Glück
Kalnichevski, Oleg wrote: Arturo, unable to find line starting with 'HTTP' error is reported or if the content-length or transfer encoding sent by the server is malformed etc. -- _ NOSE applied intelligence ag ortwin glück

DO NOT REPLY [Bug 29439] - Credentials ignored if realm specified in preemptive authentication

2004-06-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=29439. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.

Deprecate HttpMethod#recycle

2004-06-11 Thread Kalnichevski, Oleg
Folks, I suggest HttpMethod#recycle method be deprecated in 2.0 and 3.0. This has already been suggested by Eric a while ago. We should have listened Oleg *** The information in this email is

DO NOT REPLY [Bug 29439] - Credentials ignored if realm specified in preemptive authentication

2004-06-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=29439. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.

Re: Deprecate HttpMethod#recycle

2004-06-11 Thread Ortwin Glück
+1 from me (although this is not a vote) :-) Kalnichevski, Oleg wrote: Folks, I suggest HttpMethod#recycle method be deprecated in 2.0 and 3.0. This has already been suggested by Eric a while ago. We should have listened - To

DO NOT REPLY [Bug 29439] - Credentials ignored if realm specified in preemptive authentication

2004-06-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=29439. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.

Re: Deprecate HttpMethod#recycle

2004-06-11 Thread Michael Becke
Most definitely +1. Mike On Jun 11, 2004, at 4:34 AM, Kalnichevski, Oleg wrote: Folks, I suggest HttpMethod#recycle method be deprecated in 2.0 and 3.0. This has already been suggested by Eric a while ago. We should have listened Oleg

Re: HttpClient 2.0 problems

2004-06-11 Thread Michael Becke
It can also be caused by more that one method using the same connection simultaneously. For example if two threads are using the same HttpClient instance with the SimpleHttpConnectionManager. Mike On Jun 11, 2004, at 4:27 AM, Kalnichevski, Oleg wrote: Arturo, unable to find line starting

RE: PostMethod 's recycle method has problem

2004-06-11 Thread Foran, Christopher
But what if you want a persistent connection? If you call releaseConnection() are you not dropping the line? I was assuming that .recycle() was the correct way to maintain a persistent connection. Thanks. -Original Message- From: Kalnichevski, Oleg [mailto:[EMAIL PROTECTED] Sent:

Re: PostMethod 's recycle method has problem

2004-06-11 Thread Ortwin Glück
Foran, Christopher wrote: But what if you want a persistent connection? HTTPClient handles persistent connections with the connection manager. If you call releaseConnection() are you not dropping the line? No, you are returning the connection to the pool. There is no guarantee that you will

DO NOT REPLY [Bug 29439] - Credentials ignored if realm specified in preemptive authentication

2004-06-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=29439. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.

Invalid RSA modulus size

2004-06-11 Thread Tim Wild
Hi, I'm using HttpClient to connect to an apache server that requires certificates. When I use client and server certificates from my own CA with 1024 bit keys it works perfectly. When I get a commercial certificate with a longer key (4096 bits), I get the following error (full message below)