cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: changing the anon-FTP login?

From: Michael McFarland <sidlon_at_yahoo.com>
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
'ftp://me:pass@ftp.foo.org' 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 <jpb_at_rrette.com>
wrote:
> > 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.
http://mailplus.yahoo.com

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-01-06