Hello,

I'm using Cyberduck as client to send request to my web server which using
apache-tomcat-7.0.16 as web container.

When Cyberduck sent a request with an empty Content Type, web server
returned following errors:

HTTP/1.1 400 Bad Request (text/plain)

Bad Content-Type header value: ''


I thought this error is reported by tomcat, since it has not running into my
code.


I've enabled Tomcat debug log, and have no clue, following are some catalina
log:

2011-08-29 15:29:50,031
[ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG
org.apache.catalina.startup.HostConfig- Checking context[/host-manager]
reload resource D:\apache-tomcat-7.0.16\webapps\host-manager\WEB-INF\web.xml

2011-08-29 15:29:50,531 ["http-apr-80"-exec-5] DEBUG
org.apache.catalina.connector.CoyoteAdapter- The variable [uriBC] has value
[/]

2011-08-29 15:29:50,531 ["http-apr-80"-exec-5] DEBUG
org.apache.catalina.connector.CoyoteAdapter- The variable [semicolon] has
value [-1]

2011-08-29 15:29:50,531 ["http-apr-80"-exec-5] DEBUG
org.apache.catalina.connector.CoyoteAdapter- The variable [enc] has value
[ISO-8859-1]

2011-08-29 15:29:50,531 ["http-apr-80"-exec-5] DEBUG
org.apache.catalina.authenticator.AuthenticatorBase- Security checking
request GET /

2011-08-29 15:29:50,531 ["http-apr-80"-exec-5] DEBUG
org.apache.catalina.realm.RealmBase-   No applicable constraints defined

2011-08-29 15:29:50,531 ["http-apr-80"-exec-5] DEBUG
org.apache.catalina.authenticator.AuthenticatorBase-  Not subject to any
constraint

2011-08-29 15:30:00,031
[ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG
org.apache.catalina.startup.HostConfig- Checking context[] redeploy resource
D:\apache-tomcat-7.0.16\webapps\ROOT


So is it possible to modify tomcat setting to allow empty Content Type of
request? or I should try other ways (I heard someone said adding some
filters?)   - and What's the detailed steps?

Thanks

Reply via email to