Dollar Sign in URL getting encoded
See original GitHub issueSeems to be an issue with URL encoding
We have an endpoint to get the with $ sign
http://localhost:8080/myaccount/rest/v1/orders/$count
So when we send the request the URL is encoded as
http://localhost:8080/myaccount/rest/v1/orders/%24count
But $ is a reserved URL character per the below spec and should be ok to use like other reserved characters ( +, *, / , : etc.) which don’t get encoded
https://tools.ietf.org/html/rfc3986#section-2.2
Other framework like jersyclient , angular, springresettemplate all respects this and not encode $ sign.
The workaround is to disable the URL encoding , but shouldn’t be this taken care and not encoded at first place.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5
Top Results From Across the Web
URL-Encoding of "dollar" - Online
The digits, preceded by a percent sign ("%"), are then used in the URI in place of the reserved character. (For a non-ASCII...
Read more >What does dollar sign $ do in url? - Stack Overflow
In general, a character is reserved if the semantics of the URI changes if the character is replaced with its escaped US-ASCII encoding....
Read more >Dollar sign in URL breaks link - Meta Stack Exchange
The dollar sign is a special character (and apparently hasn't been taken in with the automatic SO linkifier).
Read more >HTML - URL Encoding - Tutorialspoint
Decimal Hex Value Character URL Encode
128 80 € %80
129 81 %81
130 82 ‚ %82
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
there is a work-around with RequestSpecBuilder:
RequestSpecification spec = new RequestSpecBuilder().setUrlEncodingEnabled(false); spec.setBaseUri(...);
Then it won’t escape the $ character.It sounds like something that ought to be fixed. And now that you’ve digged into the code already it would be great if you could help out with a pull request 😃