DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=36568>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=36568 ------- Additional Comments From [EMAIL PROTECTED] 2005-09-10 19:07 ------- Odi, I haven't checked to see if GetMethod would throw an exception if I give it an invalid URL. Hopefully it would. What I have encountered is that when I construct a GetMethod with a valid URL and then that URL gives me a redirect with an invalid URL in the Location header field (DUE TO A SERVER BUG, NOT MY INPUT), then I do not get an exception. Instead, HttpClient dutifully submits the invalid URL to the server that handles the redirect and I get a 505 invalid protocol. The best thing for HttpClient to do would be to throw an exception when a redirect to an invalid URL happens. (or even whenever access to an invalid URL is attempted). That would tell the user of HttpClient what they need to know (the server gave an invalid Location field) as soon as possible and as clearly as possible. The work-around that I use (and which was independently suggested here) can then be implemented ... disable automatic redirects and try to fix the URL by hand until the server can be corrected. I will be under water schedule-wise for the next few weeks. Otherwise, I would be happy to produce a test case and a patch. When I come up for air, I may be able to do it if it hasn't happened before then. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
