DO NOT REPLY [Bug 31607] New: - Catch SocketTimeoutException not InterruptedIOException

2004-10-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bu

Re: redirect problem in HttpClient

2004-10-08 Thread Zulfi Umrani
Hi Oleg, I am setting the request body as InputStream, but I do set the Content-Length header as well. I do print out the bytes for body as string before I call executeMethod and I do see the body being printed even for the transaction in question. The InputStream for body is created out of those b

Re: redirect problem in HttpClient

2004-10-08 Thread Oleg Kalnichevski
Zulfi, My only guess is that this is a thread synchronization related problem, as the problem appears to be irregular. How do you set the request body? As an InputStream? How do you set the content length? Explicitly or as CONTENT_LENGTH_AUTO? Can it be that the input stream is exhausted before

Re: redirect problem in HttpClient

2004-10-08 Thread Zulfi Umrani
Hi Oleg, Yes, the connection is closed by the server. But it is closed because the HttpClient did not send it the request BODY. The problem is that occasionally HttpClient does not send the request as I described. For a few times, it does send the request and then it just doesnt send it, but only o

Re: redirect problem in HttpClient

2004-10-08 Thread Oleg Kalnichevski
Zulfi HttpRecoverableException: "Software caused connection abort: recv failed" usually means that the connection was closed on the server side while HttpClient was still reading the response. The is more likely to be the server side problem. What exactly do you mean by "occasionally HttpClient

DO NOT REPLY [Bug 31606] New: - Access to SO_TIMEOUT for open connections

2004-10-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bu

Re: getting through a proxy server

2004-10-08 Thread Madeleine Wright
Hi, Mike. Thanks so much. That solved it! I originally had the ..setAuthenticationPreemptive(true)..bit but had taken it out because it didn't seem to work earlier. The explanations were really helpful too. This is an incredibly helpful list! Madeleine Michael Becke wrote: Hi Madeleine, The

Re: getting through a proxy server

2004-10-08 Thread Michael Becke
Also, preemptive authentication is covered in more detail at . Mike Madeleine Wright wrote: Hi. Thanks for all the suggestions. I tried replacing client.getHostConfiguration()..with method.getHostConfiguration butit didn't seem

Re: getting through a proxy server

2004-10-08 Thread Michael Becke
Hi Madeleine, The first request fails because the credentials are not sent on the first method execution. This is for two reasons. One, because the proxy credentials have been specified with a particular realm. HttpClient does not know that a URL is protected by a particular realm until is tr

Re: getting through a proxy server

2004-10-08 Thread Madeleine Wright
Progress - just moved the GetMethod constructor down below the logging details. Now, though I still get a cache MISS at first, I don't get an authentication refusal. I also tried moving the credential details higher than the host configuration, but that didn't make any difference. Madeleine O

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 reques

Re: getting through a proxy server

2004-10-08 Thread Madeleine Wright
Hi. Thanks for all the suggestions. I tried replacing client.getHostConfiguration()..with method.getHostConfiguration butit didn't seem to make any difference. I changed "method" back to "client" and retried and for the second attempt it did authenticate me - but not for the first. Initiall

RE: getting through a proxy server

2004-10-08 Thread Oleg Kalnichevski
Bob, You are absolutely right about method.getHostConfiguration() taking precedence over client.getHostConfiguration(). However, HttpClient does copy the proxy information from the agent host config to the method host config. So, that should not be the reason for proxy problems Madeleine has been

Re: getting through a proxy server

2004-10-08 Thread Oleg Kalnichevski
Madeleine, If you activate wire/context logging in your application you'll get more details on what exactly goes wrong http://jakarta.apache.org/commons/httpclient/logging.html If you need help reading the log, feel free to post it to this list. Do obfuscate security sensitive bits such as logo

RE: getting through a proxy server

2004-10-08 Thread St Jacques, Robert
I believe that your problem is the fact that by calling the "GetMethod(url)" constructor, you are creating a method with its own host configuration; in this case, the method's host configuration is used when the method is executed (as opposed to the default host configuration that you have created

Re: getting through a proxy server

2004-10-08 Thread Madeleine Wright
Hi, Eric. I don't think so. It's not a windows server. But I would appreciate seeing the code anyway? Thanks. Mad Yuzwa, Erik wrote: Madeleine, Stupid question but is your proxy server using NTLM authentication? I had to do some hoop jumping to get NTLM to work properly, but it's working now

RE: getting through a proxy server

2004-10-08 Thread Yuzwa, Erik
Madeleine, Stupid question but is your proxy server using NTLM authentication? I had to do some hoop jumping to get NTLM to work properly, but it's working now if you need some code. Erik -Original Message- From: Madeleine Wright [mailto:[EMAIL PROTECTED] Sent: Friday, October 08, 200

getting through a proxy server

2004-10-08 Thread Madeleine Wright
Please can someone suggest the simplest way to access a URL programatically through a proxy server? I'm using HttpClient and the proxy bits of my code look like this (everything else works fine - I can access all sites inside the firewall): HttpClient client = new HttpClient(); ...

[PATCH] ChunkedInputStream no longer requires an HttpMethod parameter

2004-10-08 Thread Oleg Kalnichevski
Folks, I would like to make ChunkedInputStream a little more reusable by making HttpMethod parameter optional. Please let me know if you agree/disagree Oleg *** The information in this email is co

Re: HttpClient with Applet to upload files using MultipartPost is required....

2004-10-08 Thread Srinivas Velidanda
Hi Adrian Sutton, thanks for the mail. I need some help regarding using Applet with HttpClient. I am able to make the signed applet get opened in the Internet Explorer, but I got stuck up 1. couldn't grant permissions to read a particular folder at client side. 2. Even If I do that I am n

Re: HttpClient with Applet to upload files using MultipartPost is required....

2004-10-08 Thread Adrian Sutton
On 08/10/2004, at 5:21 PM, Srinivas Velidanda wrote: Hi, can I get the sample java code to make the signed applet with HttpClient. No unfortunately we develop a commercial product so I can't release the code. However, the usage of HttpClient is exactly the same in an applet as an application.

Re: HttpClient with Applet to upload files using MultipartPost is required....

2004-10-08 Thread Srinivas Velidanda
Hi, can I get the sample java code to make the signed applet with HttpClient. thanks, Srinivas. Adrian Sutton <[EMAIL PROTECTED]> wrote: On 08/10/2004, at 4:43 PM, Srinivas Velidanda wrote: > Hi, > > I got a sample signed applet working that is given at the links you > specified. > but need

Re: HttpClient with Applet to upload files using MultipartPost is required....

2004-10-08 Thread Adrian Sutton
On 08/10/2004, at 4:43 PM, Srinivas Velidanda wrote: Hi, I got a sample signed applet working that is given at the links you specified. but need help using it with HttpClient... Pl let me know if somebody already worked with applet using HttpClient. Hi Srinivas, We use HttpClient extensively from