Date: 11 May 1998 10:35:41 +0200 From: dag-erli@ifi.uio.no (Dag-Erling Coidan =?iso-8859-1?Q?Sm=F8rgrav?= ) To: "Jordan K. Hubbard" <jkh@time.cdrom.com> Cc: committers@FreeBSD.ORG Subject: Re: libfetch Message-ID: <xzpu36x19ya.fsf@hrotti.ifi.uio.no> In-Reply-To: "Jordan K. Hubbard"'s message of "Mon, 11 May 1998 01:00:13 -0700" References: <10598.894873613@time.cdrom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
"Jordan K. Hubbard" <jkh@time.cdrom.com> writes: > > Not Yet Implemented :) but I got a very good suggestion yesterday from > > Mike Smith (option strings as in fopen()), so I'll cook something up > > soon. I pulled out all the "int flags" arguments because I realized > > they wouldn't be much help (too few bits, as you pointed out) > > Yeah, I was thinking about this some more after reading Mike's same > suggestion and it occurred to me that you could pass in fields like > the FTP username or port number the same way too, e.g.: > > fetchGetURL(urlstr, "mode=read, user=fred, pass=geheim, port=2032"); > > Anyone familiar with LDAP should be right at home with that, right? :-) Well, I'm not familiar with LDAP :) but the username and password can be encoded in the URL (cf. RFC1738), as can the port: fetchGetURL("ftp://fred:geheim@ftp.domain.com:2032/pub/file", "p"); (where "p" would mean e.g. using passive ftp) -- Noone else has a .sig like this one. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpu36x19ya.fsf>