Is there a tool that I can use in a #bash script to sanitize a string for inclusion into a URL parameter (e.g.: "foo bar" becomes "foo+bar" or "foo%20bar")?
I am trying to write a bash script for testing that takes a parameter and sends it through curl to web site. I need to url encode the value to make sure that special characters are processed prope...
Uwe Schwarz ッ�
in reply to Jonathan Lamothe • • •Sasha
in reply to Jonathan Lamothe • • •maybe `jq`?
https://stackoverflow.com/a/34407620/8607180
How to urlencode data for curl command?
Stack OverflowToby Inkster :verified:
in reply to Jonathan Lamothe • • •Jonathan Lamothe
in reply to Jonathan Lamothe • •