From owner-cvs-all Mon May 11 01:35:45 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA04384 for cvs-all-outgoing; Mon, 11 May 1998 01:35:45 -0700 (PDT) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA04376 for ; Mon, 11 May 1998 01:35:42 -0700 (PDT) (envelope-from dag-erli@ifi.uio.no) Received: from hrotti.ifi.uio.no (2602@hrotti.ifi.uio.no [129.240.64.15]) by ifi.uio.no (8.8.8/8.8.7/ifi0.2) with ESMTP id KAA26364; Mon, 11 May 1998 10:35:42 +0200 (MET DST) Received: (from dag-erli@localhost) by hrotti.ifi.uio.no ; Mon, 11 May 1998 10:35:42 +0200 (MET DST) Mime-Version: 1.0 To: "Jordan K. Hubbard" Cc: committers@FreeBSD.ORG Subject: Re: libfetch References: <10598.894873613@time.cdrom.com> Organization: Gutteklubben Terrasse / KRST / PUMS / YASMW X-url: http://www.stud.ifi.uio.no/~dag-erli/ X-Stop-Spam: http://www.cauce.org From: dag-erli@ifi.uio.no (Dag-Erling Coidan =?iso-8859-1?Q?Sm=F8rgrav?= ) Date: 11 May 1998 10:35:41 +0200 In-Reply-To: "Jordan K. Hubbard"'s message of "Mon, 11 May 1998 01:00:13 -0700" Message-ID: Lines: 23 X-Mailer: Gnus v5.5/Emacs 19.34 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk "Jordan K. Hubbard" 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