I\'m using httpc:request to post some data to a remote service. I have the post working but the data in the body() of the post comes through as is, without any URL-encoding
You can find here the YAWS url_encode and url_decode routines
They are fairly straightforward, although comments indicate the encode is not 100% complete for all punctuation characters.
At least in R15 there is http_uri:encode/1 which does the job. I would also not recommend using edoc_lib:escape_uri as its translating an '=' to a %3d instead of a %3D which caused me some trouble.