Hello Eugeny, >>HttpClient is not a browser > > > But as I can see in > http://wiki.apache.org/jakarta-httpclient/ForAbsoluteBeginners#head-a110969063be34fcd964aeba55ae23bea12ac232 > > it should provide handling of HTTP protocol, including some redirect support > and cookie management?
Yes, and so it does. It provides support for valid redirect URLs, and some support for not quite valid redirect URLs. Your problem is a URL that is so invalid that it exceeds the fault tolerance of HttpClient. > Could you please explain how can I handle redirects? Is there any way for > placing hook or register some callback? Disable automatic redirects so your application will get the 30x response. The redirect target is given in the Location: response header. Convert it to a valid, absolute URL and have your application send another request for the new URL. cheers, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
