Watch out, illegal Jetty URL
Is the following URL legal?
http://host?param=value
Well, for Jetty 7.x it is not. And I couldn’t understand why before a friend of mine pointed to a missing "/":
http://host/?param=value
As it appears, if you have a ContextHandler registered to service "/" requests, as we did, Jetty rejects any of them coming without a slash with 400 "Bad request" response.
If you try to use the first URL in a browser, it will add a missing slash automatically. But Apache HttpClient isn’t that smart, unfortunately.
Watch out!
Web reading – 3 simple tricks that actually work Zoho Writer – a disappointment :(

