cURL / Mailing Lists / curl-library / Single Mail


Re: changing the anon-FTP login?

From: Michael McFarland <>
Date: Mon, 6 Jan 2003 13:39:14 -0800 (PST)

   My main problem w/ setting CURLOPT_USERPWD is that
it overrides any login information that may be in the
URL itself. If you fetch the URL
'' with CURLOPT_USERPWD set,
you'll log in anonymously. I'm looking for a way to
basically override the CURL_DEFAULT_PASSWORD set in
urldata.h to my own email address. Is something like
this planned for the future?

  - Michael

--- Jean-Philippe Barrette-LaPierre <>
> > One quick question. In the latest version of
> > libcurl, is there a way to change the login used
> to
> > access anonymous FTP servers (aside from modifying
> > urldata.h & recompiling)? If not, is there a plan
> to
> > make this a curl option in future versions?
> >
> > - Michael
> You just need to set the CURLOPT_USERPWD option,
> because anon user is just a
> special user that don't necesserely need a password
> ( depends on ftp server
> options).

Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.

This email is sponsored by:ThinkGeek
Welcome to geek heaven.
Received on 2003-01-06