Hi all!
I am trying to do a "/tool fetch url="$urlstring" dst-path="/$file" where $urlstring is a string with bunch of data including the different values gathered from "/system routerboard print". This in turn is a poor mans way of making a http post to a server to register data about every router.
Problem is that many of the values contains spaces, hyphens and other characters that does not work well in url's and they need to be escaped (url encoded). So, have anyone done that before? What I basically need is a way to replace different characters in a string, ie - with %2D, space with %20 etc.
I would be grateful for any help.