cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: compilation errors for CURLOPT_USERNAME and CURLOPT_PASSWORD on Fedora 10

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 29 Jul 2011 14:40:49 -0700

On Sat, Jul 30, 2011 at 02:14:58AM +0530, Arun venkatesh wrote:
> im using the default curl that came with the fedora 10 package. the
> version seems to be libcurl-devel-7.18.2
>
> im using curl lib to remote ftp connect.
>
> however, for CURLOPT_USERNAME and CURLOPT_PASSWORD, the compiler is
> giving me "not declared in this scope" error.
>
> can any one suggest if there is an alternative for the above tags in
> the existing version? or do i need to upgrade to latest??

According to
https://github.com/bagder/curl/blob/master/docs/libcurl/symbols-in-versions
those symbols were only added in version 7.19.1. Before then, you can
use CURLOPT_USERPWD instead.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-07-29