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 the correct cookie policy is in place and that the
server doesn't send invalid cookies.
http://wiki.apache.org/HttpComponents/ForAbsoluteBeginners#head-1cf332662ef015b4aa19e06dc24c24e391ecda69
The cookie guide is for the old API, but the ideas are still the same.
The latest release of HttpClient has a "Best Match" cookie policy that
automatically determines the kind of cookie sent by the server.
http://hc.apache.org/httpclient-3.x/cookies.html
cheers,
Roland
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]