When I am trying to send a cookie from my android code to server-side code , the cookie parser does not accept the '@' character in value field i.e. tomcat's cookie parser reject this character when parsing mime headers to cookie. I tried using other special characters instead of '@' and those are working. Can anyone help me?
Example-: One of the mime header field is "cookie = [[email protected]]" but the corresponding cookie to this field is "_user = vishalgoyal2612"
I had to set org.apache.tomcat.util.http.ServerCookie.ALLOW_HTTP_SEPARATORS_IN_V0 to true.
Here is the source - https://tomcat.apache.org/tomcat-7.0-doc/config/systemprops.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With