The http request you're seeing in your server was filled by your browser - so it looks to me like your browser is not doing proper http !?!
What browser are you using ? Have you tried whether different browser give you the same effect ?
Actually, it's not even a browser I use. It's one of our apps. But the important fact is that everything was working fine under Jboss JBoss-2.2.2_Tomcat-3.2.2 but now under JBoss-2.4.4_Tomcat-4.0.1, I've this problem. The way the header is build in our apps may be the problem though...
It is conceivable that Tomcat 3.2.2 did some additional transformation on the headers, such as remove blanks after the name, and that Tomcat 4.0.1 is less tolerant.
In any case, if you want your application to be portable, you must comply to the http RFC when building your http request (rfc 2616). I think the required format is
so you could have spaces after the : separator, but not before.
Exactly what I did... and it works fine