I want to add newline characters in query parameters for a get method in my RESTful API.
This is my final GET
URL in Postman:-
www.localhost:8091/customRule?someString="this is some string \\n on new line"
I get the exception:-
java.lang.IllegalArgumentException: Invalid character found in the request target [/customRule?someString=%22this%20is%20some%20string%20\\n%20on%20new%20line%22]. The valid characters are defined in RFC 7230 and RFC 3986
How can i fix that ?