Web lists-archives.com

Re: imap-send with gmail: curl_easy_perform() failed: URL using bad/illegal format or missing URL

On Thu, 30 Nov 2017, Nicolas Morey-Chaisemartin wrote:

It would make sense to have a way to ask libcurl to URI encode for us. I'm guessing there's already the code for that somewhere in curl and we would be wise to use it. But to work wqith older version we'll have to do it ourselves anyway.

libcurl only offers curl_easy_escape() which URL encodes a string.

But that's not really usably on an entire existing URL or path since it would then also encode the slashes etc. You want to encode the relevant pieces and then put them together appropriately into the final URL...


 / daniel.haxx.se