Hi and happy new year,

we have an application where HTTP clients have a kind of unclean way of submitting HTTP POST requests to our tomcat server for data upload: The |POST| and |Host: xxx| part appears twice in the request.

Until now this didn't cause any problems with tomcat, but since the latest release, Tomcat refuses to accept this message and returns a 400 bad request immediately.

Unfortunately we'll not be able to change the client-side code. Is there any way to tell the tomcat connector "ignore duplicate headers" or so to make it work again? I guess the rewrite filters for tomcat won't help as tomcat probably discards the incoming message before handing it over to rewrite.

Example request:

|POST /data/upload/test HTTP/1.1 Host: www.myhost.de:8180 POST /data/upload/test HTTP/1.1 Host: www.myhost.de:8180 [...rest of the request is ok...] |

I wonder if there is a parameter for the |Connector| part in server.xml or so to workaround this problem and restore the old behaviour without downgrading.

Greetings,

Dennis

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to