Hi Marcelo, disable redirects by calling HttpMethod.setFollowRedirects(false).
There is no need to change the date of a cookie. Cookies without a date are supposed to live as long as the browser/client session, which is exactly what's happening with HttpClient. hope that helps, Roland "Marcelo Chryssovergis" <[EMAIL PROTECTED]> 26.07.2005 09:50 Please respond to "HttpClient User Discussion" To "'HttpClient User Discussion'" <[email protected]> cc Subject CircularRedirectException Hello my friends I´m trying to log in to a site that uses both cookies AND session control. Here what am I doing: I enter the site Get the cookies Send the cookies back (with the date changed, from null to a valid date) Do the login (with PostMethod) At this moment, I verify if I have to logoff the oppened session left behind. And almost aways I have this connection open. When I send the url responsible to execute de logoff (with GetMethod), I get an exception: org.apache.commons.httpclient.CircularRedirectException: Circular redirect to 'http://www.siteI´mWorking.com:80/' How can I fix it?? I guess I have to log off then log in again, because de session is pendent at the server.. Thanks a lot! Marcelo --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
