curl / Mailing Lists / curl-library / Single Mail



From: Michael via curl-library <>
Date: Tue, 21 Mar 2017 09:36:29 +0000 (UTC)

the debugger returns this error at line:
          curl_easy_setopt(curl2, CURLOPT_URL,"");I'll ask back the server stuff.

      From: Daniel Stenberg <>
 To: libcurl development <>
 Sent: Tuesday, March 21, 2017 10:00 AM
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.


Received on 2017-03-21