Skip to main content

[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)


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:


then it redirects infinitely.

If you send


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.

Simone Bordet
Developer advice, training, services and support
from the Jetty & CometD experts.
Intalio, the modern way to build business applications.

Back to the top