On Tue, 21 Mar 2017, Michael wrote: (please stop the top-posting, it is hard to follow)
I've tried with the code below but still CURLE_URL_MALFORMAT
That seems very strange. Neither the user name nor the URL are particularly strange nor unusual and I can't think of any change we've ever done to curl that would make them not work. I would say that combination has been working for over 15 years.
What libcurl version are you using?
ftp login works from terminal.So where could be the problem?
You mess up the string in your code somehow?
I've asked the server stuff and they don't see any problem with their server.
There's usually no server involved in CURLE_URL_MALFORMAT. That's libcurl not liking something in the URL you pass to it,
I think you should consider single-stepping through libcurl with a debugger a bit and figure out what it finds questionable in your URL.
-- / daniel.haxx.se ------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html
