Replies: 1 comment
-
The URL was only rejected originally because because it contained a space, and you need If you have In fact, note that if you try to normalise that URL with trurl, you will see that the space gets encoded as
Removing the
I do notice that
That is not an equivalent URL though; this URL has a query with only a I am trying to make sense of what you are trying to do here. var='foo%bar@$ ^&*'
trurl "https://test.com/?test=$var" If so, that is not how you are supposed to use var='foo%7bar@$ ^&*'
trurl -a "query=test=$var" https://test.com/
# output: https://test.com/?test=foo%257bar%40%24%20%5e%26%2a This will reliably set Hopefully that helps. o/ |
Beta Was this translation helpful? Give feedback.
-
Would it be useful to have the ability to percent encode parameter values in trurl?
For example, to encode the
test
parameter in the URL below.Maybe something like this...
output
I tried using the
--urlencode
option but got an error due to the whitespace.And after using the
--accept-space
it only encoded the whitespace character.Beta Was this translation helpful? Give feedback.
All reactions