Re: libcurl FTP: CURLOPT_USERNAME and CURLOPT_PASSWORD not working in MAC OS X
Date: Wed, 29 Apr 2009 10:24:03 -0400
> I tried on libcurl version 7.19.3
> The below code is working perfectly fine in Windows. The problem is
> only in Mac (I tried on 10.5.6).
> Instead of CURLOPT_USERNAME and CURLOPT_PASSWORD when I changed it to
> curl_easy_setopt(handle, CURLOPT_USERPWD, "username:password");
> it worked
> This also worked
> curl_easy_setopt(handle, CUROPT_URL, "ftp://username:password@.../abcd.txt");
Are you sure that the version of libcurl on the Mac is 7.19.3?
CURL_USERNAME and CURL_PASSWORD are relatively new options, and if you
have an older version then these won't work and you'll need to
upgrade. The results you're seeing imply that it's an older version.
Received on 2009-04-29