[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jetty-users] Jetty HttpClient redirect issue going from M5 to RC0 (and above)
|
Hi,
On Sun, Mar 3, 2013 at 11:13 PM, Jay Wallingford
<jhwallingford@xxxxxxxxx> wrote:
> Hi,
>
> I recently upgraded from jetty-client M5 to RC2 and have a problem with too
> many redirects after the upgrade. I tried this in RC0 and RC1 and had the
> same issue. Here's a simple test that demonstrates the problem …
Hard to believe, this was due to the Host header.
If the server receives a host in the form of:
Host: twitter.com:443
then it redirects infinitely.
If you send
Host: twitter.com
then it works fine.
I tried other servers (not only twitter) and they all seem affected by
this problem.
In any case, HttpClient now sends a host without port if it is the default port.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=402341
--
Simone Bordet
----
http://cometd.org
http://webtide.com
http://intalio.com
Developer advice, training, services and support
from the Jetty & CometD experts.
Intalio, the modern way to build business applications.