Closed GabMgt closed 9 years ago
I tried the function : url.QueryEscape(string) string
But this function translate " " in "+" instead of "%20"
You can use curl.Escape()
, like in https://github.com/andelf/go-curl/commit/918707065915e31b415c8e9df97b733aa0d0cb86 .
Note that Escape
will convert all input characters that are not a-z, A-Z, 0-9, '-', '.', '_' or '~'.
In your case, the =
will be converted too. (use Escape
only on values, don't use it for keys)
Thank you!
Hello!
First, thank you for this awesome curl binding, it works very well. But i want to send a POST payload with "\n" in the message.
With command line :
And the \n is encoded : %5Cn
This is the entire payload encoded :
How to do this with your library please?