Skip to main content

400 invalidURI: noSlash when invoking URL with encoded parameter

1 reply [Last post]
cwebster
Offline
Joined: 2005-03-17

I am using Glassfish v2u2 and I am trying to invoke a URL like:
https://localhost:8181/ui/login/;referer=http%3A%2F%2Flocalhost%3A8080%2...

I am getting the http status code 400 with the invalidURI error message. Why is this happening ?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Wolfram Rittmeyer

glassfish@javadesktop.org wrote:
> I am using Glassfish v2u2 and I am trying to invoke a URL like:
> https://localhost:8181/ui/login/;referer=http%3A%2F%2Flocalhost%3A8080%2...
>

Though I do not _know_ it I assume that it is because of the ";"
character in the URL above. This is used for URL-Rewriting to separate
the jsessionid from the server:

http://localhost:8080;jsessionid=whatever?param=value&anaotherparam=value

Why don't you use the "?" that is normally used to indicate GET parameters?

--
Wolfram Rittmeyer

> I am getting the http status code 400 with the invalidURI error message. Why is this happening ?
> [Message sent by forum member 'cwebster' (cwebster)]
>
> http://forums.java.net/jive/thread.jspa?messageID=286167
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net