tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: HTTP/1.x 400 Invalid URI: noSlash
Date Mon, 21 Jan 2008 20:48:34 GMT
This works - thank you. 

Adrian Blakey

Rainer Jung <> 
01/21/2008 12:38 PM
Please respond to
"Tomcat Users List" <>

Tomcat Users List <>

Re: HTTP/1.x 400 Invalid URI: noSlash

Hi Adrian, schrieb:
> Should it be normal behavior to return the response: HTTP/1.x 400 
> URI: noSlash 
> To the request: GET/bar/
> Note: Unencoded it is: GET /bar/foo://
> Tomcat 6.0.14 jdk 1.5
> Is this a defect? Could someone explain how this URI is being parsed? 
> how can I pass a URI within an http URL, without it either being mangled 

> or rejected?

Could be the following, included in the page

The following Java system properties have been added to Tomcat to 
provide additional control of the handling of path delimiters in URLs 
(both options default to false):

     * org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH: true|false
     * org.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH: 

So I would add


to your startup options (if you really need encoded slashes).

> Adrian Blakey

Not sure, if the other encodings will be a problem, but try with this 
system property first.



To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message