curl-library
Re: CURLE_URL_MALFORMAT
Date: Mon, 20 Mar 2017 19:04:44 -0400
On 3/20/2017 12:37 PM, Michael via curl-library wrote:
> I can ftp connect in terminal but with curl/c++ I get:
>
> CURLE_URL_MALFORMAT
> error the line alike:
> curl_easy_setopt(curl2, CURLOPT_URL,"ftp://u9-3tja:365@example.com/");
> <ftp://u9-3tja:365@example.com/>
> I've tried all kind of stuff. Many thanks for help.
There doesn't seem to be anything wrong with that URL. I suspect
something in your actual URL is causing this problem. Likely there is
some character that needs to be encoded and isn't. Also see
http://stackoverflow.com/a/33965113
Please reply with a sample URL we can use to reproduce and your
curl_version() information, printf("%s\n", curl_version());
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-03-21