RE: cookie or session-id is different from the same HttpClient connection?!

2008-03-11 Thread micky
Dear, I solved the cookie issues according to the article mentioned by Roland at http://www.nabble.com/forum/ViewPost.jtp?post=15912252framed=y After I GET a request to the server, the session will be established. The following sequences like POST a data or request any other pages by GET or

RE: cookie or session-id is different from the same HttpClient connection?!

2008-03-11 Thread Oleg Kalnichevski
On Tue, 2008-03-11 at 21:23 +0800, micky wrote: Dear, I solved the cookie issues according to the article mentioned by Roland at http://www.nabble.com/forum/ViewPost.jtp?post=15912252framed=y After I GET a request to the server, the session will be established. The following sequences

RE: cookie or session-id is different from the same HttpClient connection?!

2008-03-09 Thread micky
Dear Oleg, Because HttpClient does not find the first cookie when executing the second request. You are not creating a new instance of HttpClient for each request, are you? No, I am using the same instance of HttpClient for each request. Any suggestion for debugging? Sincerely, Micky

RE: cookie or session-id is different from the same HttpClient connection?!

2008-03-07 Thread Oleg Kalnichevski
On Fri, 2008-03-07 at 13:24 +0800, micky wrote: Dear, I finally figure out how to log!! Please help me find out why these two connections' cookie are different. Because HttpClient does not find the first cookie when executing the second request. You are not creating a new instance of

RE: cookie or session-id is different from the same HttpClient connection?!

2008-03-06 Thread micky
Dear, I finally figure out how to log!! The SimpleLog can't work, but the log4j works. Below is the log. executing: POST https://127.0.0.1/agent/xml/login.xml HTTP/1.1 DEBUG [org.apache.http.impl.client.ClientParamsStack] 'http.protocol.max-redirects': null DEBUG

Re: cookie or session-id is different from the same HttpClient connection?!

2008-02-29 Thread Oleg Kalnichevski
On Thu, 2008-02-28 at 17:19 +0800, micky wrote: Dear, I use the HttpClient to login some page, and it will have a cookie according to my login. But when I try to access another page (needed for logon) by the same HttpClient, the response is access denied. Then I print out the

Re: cookie or session-id is different from the same HttpClient connection?!

2008-02-29 Thread Roland Weber
micky wrote: Then I print out the cookies of the two connection, I found them are different. But the document said I don't need to care the cookie issue when I use HttpClient to login and continue browsing other pages. You don't have to take care of the cookies, but you have to make sure that