curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLE_URL_MALFORMAT

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

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

      From: Daniel Stenberg <daniel_at_haxx.se>
 To: libcurl development <curl-library_at_cool.haxx.se>
 Sent: Tuesday, March 21, 2017 10:00 AM
 Subject: Re: CURLE_URL_MALFORMAT
   
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
   

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-03-21