Re: [Fwd: Any example on state(cookie) management across a series of connections?]

2003-02-17 Thread Yang Su
Actually my original code without your suggested changes work for that step(i.e., POST is successful, you can try to run the attached class, however, if I modify the code to adapt your suggestion, it turns out that it doesn't work, see the modified attachment -- WONT WORK) I think the problem is th

[Fwd: Any example on state(cookie) management across a series ofconnections?]

2003-02-17 Thread Jeffrey Dever
Not sure about that chunk error, but HttpClient does not allow forwards across hosts. The webpage you posted is using a form based login. You should probablly look at the html source and figure out how to do what the browser is doing, as opposed to what the user is doing. (read that twice)

Any example on state(cookie) management across a series of connections?

2003-02-17 Thread Yang Su
Hi, I am new here. I am trying to have a simulated http client whose purpose is to log onto www.hotjobs.com using username and password, I've written a program(which I attach) to achieve this, however, the final step which I try to connect to "http://my.hotjobs.yahoo.com/display/resume?";, it

RE: NTLM Proxy Authentication

2003-02-17 Thread Shahbaz Khalid
Hello Adrian, A very informative message indeed, my thanks to you ! I will digest this information and see what can be done further - I don't have the code at home, and I will have to work with it tomorrow at office (as I do not have a proxy server at home, I've got XP and couldnt get any of the M

RE: NTLM Proxy Authentication

2003-02-17 Thread Adrian Sutton
Hi Shahbaz, The HttpClient codebase has changed a fair bit since the version I know and am using so I don't have a full source code example to look at, but hopefully the information below will help a bit. If you still don't get it working, could you send through the code your currently using and w

Re: DO NOT REPLY [Bug 13463] - Request/Response race condition when doing multiple requests on the same connection.

2003-02-17 Thread Michael Becke
This patch should take care of the problems discovered by Aurelien. Now all connections returned from the MultiThreadedHttpConnectionManager are wrapped in an adapter class. This class ensures that a connection cannot be reused once released. Please let me know you think. Thanks Aurelien fo

DO NOT REPLY [Bug 13463] - Request/Response race condition when doing multiple requests on the same connection.

2003-02-17 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://nagoya.apache.org/bugzilla/show_bu

NTLM Proxy Authentication

2003-02-17 Thread Shahbaz Khalid
Hello, Sorry about the previous empty message - need more coffee :) Anyways, I am trying to authenticate with an NTLM Proxy server, and have been successful in doing so. But, not without a catch. Firstly, I am getting an exception (Connection closed by peer) in between the authentication process,

NTLM Proxy Authentication

2003-02-17 Thread Shahbaz Khalid
__ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

[PATCH] Multiple cookie headers in non-strict mode

2003-02-17 Thread Oleg Kalnichevski
Changelog: - In non-strict mode each cookie sent with the request is put on a separate request header. - In strict mode all cookies are crammed into one request header, as before The patch requires the test webapp to be recompiled & redeployed It's a fairly minor change blessed by Jandalf long ti

Re: 2.0 alpha3 - no rush

2003-02-17 Thread Michael Becke
The version that Aurelien was using is attached in bugzilla: http://nagoya.apache.org/bugzilla/showattachment.cgi?attach_id=4878 Mike On Monday, February 17, 2003, at 12:33 PM, Oleg Kalnichevski wrote: Mike Do you think it would be possible to post even a very rough, preliminary patch? Seein

Re: 2.0 alpha3 - no rush

2003-02-17 Thread Ortwin Glück
Michael Becke wrote: It seems that the connection wrapper solution will work. I will go ahead and and clean up the code some and submit a patch tonight or tomorrow. If anyone has suggestions/ideas about this change please let me know. In particular I would like to hear some comments regardin

Re: 2.0 alpha3 - no rush

2003-02-17 Thread Jeffrey Dever
Thanks Mike. You rock. - what is a good name for this connection wrapping class, currently it is HttpConnectionAdapter? Sounds reasonable. - should this class be available outside of the MultiThreadedHttpConnectionManager? Prefer to have as much isolation as is reasonable. Particularl

Re: 2.0 alpha3 - no rush

2003-02-17 Thread Oleg Kalnichevski
Mike Do you think it would be possible to post even a very rough, preliminary patch? Seeing how the patch is shaping up would aid us greatly in assessing various alternatives. Cheers Oleg On Mon, 2003-02-17 at 18:21, Michael Becke wrote: > It seems that the connection wrapper solution will wor

Re: 2.0 alpha3 - no rush

2003-02-17 Thread Michael Becke
It seems that the connection wrapper solution will work. I will go ahead and and clean up the code some and submit a patch tonight or tomorrow. If anyone has suggestions/ideas about this change please let me know. In particular I would like to hear some comments regarding the following: - w

2.0 alpha3 - no rush

2003-02-17 Thread Jeffrey Dever
We were going to do a 2.0 alpha3 release, but this will wait untill the threading work Mike is doing with Aurelien columnates into a conclusion and a patch. Jandalf. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

RE: [Bug 13463] - Request/Response race condition when doing multiple requests on the same connection.

2003-02-17 Thread Aurelien Pernoud
10 users using 5 requests (no cache implemented for this test), I have some recoverable exception, but no errors at all ! Nice work ;) I'll try it later on a real server with more users cause here I was limited with total connections allowed by my OS and Tomcat. Michael Becke a ecrit : > S

Re: [Bug 13463] - Request/Response race condition when doing multiplerequests on the same connection.

2003-02-17 Thread Michael Becke
Sounds good. Thank you for putting all of this work into testing. Mike Aurelien Pernoud wrote: Michael Becke a ecrit : Do any of the requests fail? There are some legitimate cases where that exception will get printed, but where there is no actual error. For instance this can get printed wh

RE: [Bug 13463] - Request/Response race condition when doing multiple requests on the same connection.

2003-02-17 Thread Aurelien Pernoud
Michael Becke a ecrit : > Do any of the requests fail? There are some legitimate cases where > that exception will get printed, but where there is no actual error. > For instance this can get printed when a connection times out, but is > still open. > > Mike Nope, I couldn't get the header pars

Re: [Bug 13463] - Request/Response race condition when doing multiplerequests on the same connection.

2003-02-17 Thread Michael Becke
Do any of the requests fail? There are some legitimate cases where that exception will get printed, but where there is no actual error. For instance this can get printed when a connection times out, but is still open. Mike Aurelien Pernoud wrote: Michael Becke a ecrit : Thx to everyone fo

RE: [Bug 13463] - Request/Response race condition when doing multiple requests on the same connection.

2003-02-17 Thread Aurelien Pernoud
> Michael Becke a ecrit : > >>> Thx to everyone for help, and sorry Mike I made you spend some time >>> on it, I hate it : >> >> Not to worry. You've discovered some legitimate bugs in >> HttpClient's multi-threaded support. >> >> Mike > > I just downloaded and compiled httpclient from current

RE: [Bug 13463] - Request/Response race condition when doing multiple requests on the same connection.

2003-02-17 Thread Aurelien Pernoud
Michael Becke a ecrit : >> Thx to everyone for help, and sorry Mike I made you spend some time >> on it, I hate it : > > Not to worry. You've discovered some legitimate bugs in HttpClient's > multi-threaded support. > > Mike I just downloaded and compiled httpclient from current cvs, I'll t

Re: [Bug 13463] - Request/Response race condition when doing multiple requests on the same connection.

2003-02-17 Thread Michael Becke
Thx to everyone for help, and sorry Mike I made you spend some time on it, I hate it : Not to worry. You've discovered some legitimate bugs in HttpClient's multi-threaded support. Mike - To unsubscribe, e-mail: [EMAIL PR

RE: [Bug 13463] - Request/Response race condition when doing multiple requests on the same connection.

2003-02-17 Thread Aurelien Pernoud
Ortwin Gluck a ecrit : > Aurelien Pernoud wrote: >> Wow... looks like I tried to optimize my code a little too much... >> I'm really sorry, I've just found out that when two users logged in >> using the same login/password, they were sharing methods. > > Are you using instance variables in a JSP?

Re: [Bug 13463] - Request/Response race condition when doing multiplerequests on the same connection.

2003-02-17 Thread Ortwin Glück
Aurelien Pernoud wrote: Wow... looks like I tried to optimize my code a little too much... I'm really sorry, I've just found out that when two users logged in using the same login/password, they were sharing methods. Are you using instance variables in a JSP? If yes, don't. ---

RE: [Bug 13463] - Request/Response race condition when doing multiple requests on the same connection.

2003-02-17 Thread Aurelien Pernoud
Aurelien Pernoud a écrit : >> --- Additional Comments From [EMAIL PROTECTED] 2003-02-14 >> 17:30 --- I just attached a test version of >> MultiThreadedHttpConnection manager. Mind you this code is quite >> ugly. This seems to have fixed the problem for me. Please give >> this a shot if

Re: Multiple attempts with same credentials

2003-02-17 Thread Ortwin Glück
Rob Owen wrote: HttpMethodBase's processAuthenticationResponse uses a set of realms to which attempts to authenticate have already been made. The elements of the set are a concatenation of the requested path and the value of the Authentication response header. For digest authentication this respo