redirect problem in HttpClient

2004-10-08 Thread Zulfi Umrani
I am getting the following exception for redirect responses from HttpClient. Attached is the log from HttpClient. I know that HttpClient does not support redirect directly, hence we have written some code to handle that. The problem seems to be that, occasionally HttpClient does not send the

Re: redirect problem in HttpClient

2004-10-08 Thread Zulfi Umrani
it be that the input stream is exhausted before HttpClient has a chance to send its content across the wire? Can you send me the context/wire log for the HTTP transaction in question? Oleg On Fri, 2004-10-08 at 22:10, Zulfi Umrani wrote: Hi Oleg, Yes, the connection is closed by the server

Hi,

2004-08-20 Thread Zulfi Umrani
ran the tests against a local Tomcat on a Win2k Pro workstation with JDK 1.4.2_02 in Eclipse 3.0. The profiler used was: http://eclipsecolorer.sourceforge.net/index_profiler.html Feel free to discuss the results attached to this email. Ortwin Glück Zulfi Umrani wrote: Hi, Just wanted

Looks I did not receive the response because I wasn't subscribed. The reason I did not put my perfor

2004-08-20 Thread Zulfi Umrani
in terms of performance between HttpClient 2.0alpha3, 2.0.1, CVS HEAD (post-3.0a1) and HttpURLConnection Oleg -Original Message- From: Zulfi Umrani [mailto:[EMAIL PROTECTED] Sent: Friday, August 20, 2004 7:06 AM To: [EMAIL PROTECTED] Subject: HttpClient performance Hi, Just wanted

HttpClient performance

2004-08-20 Thread Zulfi Umrani
in terms of performance between HttpClient 2.0alpha3, 2.0.1, CVS HEAD (post-3.0a1) and HttpURLConnection Oleg -Original Message- From: Zulfi Umrani [mailto:[EMAIL PROTECTED] Sent: Friday, August 20, 2004 7:06 AM To: [EMAIL PROTECTED] Subject: HttpClient performance Hi, Just wanted

HttpClient performance

2004-08-20 Thread Zulfi Umrani
ran the tests against a local Tomcat on a Win2k Pro workstation with JDK 1.4.2_02 in Eclipse 3.0. The profiler used was: http://eclipsecolorer.sourceforge.net/index_profiler.html Feel free to discuss the results attached to this email. Ortwin Glück Zulfi Umrani wrote: Hi, Just wanted

Re: HttpClient performance

2004-08-20 Thread Zulfi Umrani
-Original Message- From: Zulfi Umrani [mailto:[EMAIL PROTECTED] Sent: Friday, August 20, 2004 7:06 AM To: [EMAIL PROTECTED] Subject: HttpClient performance Hi, Just wanted to get the latest information on the performance issues reported earlier. I have gone through the below

Re: Cookie

2003-06-27 Thread Zulfi Umrani
guide does not help to resolve the problem please post a wire log containing the transaction in question. Mike On Thursday, June 26, 2003, at 07:09 PM, Zulfi Umrani wrote: I enable the logging for info, but did not get any message on the console. And the cookies still are not handled

Re: Cookie

2003-06-27 Thread Zulfi Umrani
-27 at 17:10, Zulfi Umrani wrote: I hung on to the HttpClient instance and seems like it is sending cookies now. But it still did not work successfully, because Apache Tomcat Server is returning a wiered message. When I do not send cookies, it accepts the POST request. But as soon as cookie

Re: Cookie

2003-06-27 Thread Zulfi Umrani
:00 PM The [0x0] values are just a product of the Wire log. It interprets the logged values as ASCII and treats all non printing ASCII values in this way. [0x0] corresponds to the ASCII value 0. Mike Zulfi Umrani wrote: Instead of caching HttpClient, I cached HttpState and it worked fine. Now

Cookie

2003-06-26 Thread Zulfi Umrani
Does any one know how can I manage cookies without having to get the cookies from HttpState and setting it back everytime I make a request? Is there an automatic way to handle cookies? Alternatively, how do I put a cookie header on PostMethod? I have string representation of the cookie, I would

RE: Cookie

2003-06-26 Thread Zulfi Umrani
- From: Zulfi Umrani [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 7:12 AM To: [EMAIL PROTECTED] Subject: Cookie Does any one know how can I manage cookies without having to get the cookies from HttpState and setting it back everytime I make a request? Is there an automatic way

performance

2003-06-25 Thread Zulfi Umrani
I will appreciate if anyone answers my questions below. -Does anyone has perfromance comparison between HTTPClient and JDK HttpURLConnection? -Are there any performance techniques that can be used to improve the performance of HTTPClient? -When will the final version of HTTPClient be out?

INFO

2003-06-24 Thread Zulfi Umrani
Does anyone know how to suppress the information message generated by http client. [INFO] HttpMethod - -100 (continue) read timeout. Resume sending the request Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: preemptive

2003-06-10 Thread Zulfi Umrani
to resolve these sort of problems without them. Take a look at http://jakarta.apache.org/commons/httpclient/logging.html for details. Mike On Monday, June 9, 2003, at 06:44 PM, Zulfi Umrani wrote: Tried to use the Preemptive Authentication feature. Could not get it to work. I used

RE: preemptive

2003-06-10 Thread Zulfi Umrani
)); Cheers Oleg -Original Message- From: Zulfi Umrani [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 00:44 To: [EMAIL PROTECTED] Subject: preemptive Tried to use the Preemptive Authentication feature. Could not get it to work. I used the HttpState.setAuthenticationPreemptive

NTLM

2003-06-10 Thread Zulfi Umrani
Tried to Authenticate using NTLM. Attached is JCTest.java sample code and debug trace in debug.txt. It comes back finally as Access Denied. Does anyone has a clue? Thanks. [DEBUG] HttpConnection - -Creating connection for localhost using protocol http:80 [DEBUG] HttpConnection -

SSL

2003-06-10 Thread Zulfi Umrani
Does anyone has sample code to do GET/POST on a https url? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: NTLM

2003-06-10 Thread Zulfi Umrani
with the implementation of the protocol it will be exceptionally hard to track down so I need as much info as possible. Regards, Adrian Sutton. On Wednesday, June 11, 2003, at 02:28 AM, Zulfi Umrani wrote: Tried to Authenticate using NTLM. Attached is JCTest.java sample code and debug trace

Following code throws IllegalArgumentException: host parameteris null! Does any one know why?

2003-06-09 Thread Zulfi Umrani
Following code throws IllegalArgumentException: host parameter is null! Does any one know why? HttpClient hc = new HttpClient(); HttpState state = hc.getState(); state.setCredentials(, new UsernamePasswordCredentials(zulfi, zulfi)); String urlstr =

HttpURLconnection, POST Authentication

2003-06-09 Thread Zulfi Umrani
I am trying to do POST using HttpURLConnection. Also I would like to do Basic/Digest/NTLM Authentication at the same time. Since most of my earlier code is done using java.net.HttpURLConnection, I would like to maintain the APIs such as getOutputStream(), getInputStream() and get/setHeader(). Does

Re: Following code throws IllegalArgumentException: hostparameter is null! Does any one know why?

2003-06-09 Thread Zulfi Umrani
This problem got solved when I pass the HostConfiguration object in the executeMethod method. Looks like it's redundant, but did get rid of the exception! [EMAIL PROTECTED] 6/9/2003 8:46:03 PM On Tuesday, June 10, 2003, at 07:24 AM, Zulfi Umrani wrote: Following code throws

Re: HttpURLconnection, POST Authentication

2003-06-09 Thread Zulfi Umrani
and redesign your Http code so that it's more flexible and separate as your entire application will likely benefit as a result. Regards, Adrian Sutton. On Tuesday, June 10, 2003, at 07:34 AM, Zulfi Umrani wrote: I am trying to do POST using HttpURLConnection. Also I would like to do Basic

Re: HttpURLconnection, POST Authentication

2003-06-09 Thread Zulfi Umrani
little purpose. As specified in the JavaDocs it only acts as a wrapper for an already executed HttpMethod. It really only provides access for querying an HttpClient response with the java.net API. Mike On Monday, June 9, 2003, at 06:00 PM, Zulfi Umrani wrote: Thanks for the info. I believe