Question about url encoding: I am working with an...
# suitescript
s
Question about url encoding: I am working with an external API and need to send POST requests with a URL encoded form. I started writing the code to build the request body, but decided to see if there is already support in any of the SS 2.0 modules for doing this. The closest thing I can find is the
N/url
module's
url.format
function, but that takes a domain, and I really only need the parameters portion. I could use a dummy domain, then strip it off of the resulting url, but I was curious if anyone knows of a better way using built-in methods?