From owner-cvs-all Mon May 11 01:01:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA00277 for cvs-all-outgoing; Mon, 11 May 1998 01:01:09 -0700 (PDT) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from time.cdrom.com (root@time.cdrom.com [204.216.27.226]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA00262 for ; Mon, 11 May 1998 01:01:03 -0700 (PDT) (envelope-from jkh@time.cdrom.com) Received: from time.cdrom.com (jkh@localhost.cdrom.com [127.0.0.1]) by time.cdrom.com (8.8.8/8.8.8) with ESMTP id BAA10602; Mon, 11 May 1998 01:00:13 -0700 (PDT) (envelope-from jkh@time.cdrom.com) To: dag-erli@ifi.uio.no (Dag-Erling Coidan =?iso-8859-1?Q?Sm=F8rgrav?= ) cc: committers@FreeBSD.ORG Subject: Re: libfetch In-reply-to: Your message of "11 May 1998 09:48:13 +0200." Date: Mon, 11 May 1998 01:00:13 -0700 Message-ID: <10598.894873613@time.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk > I don't really like it much, but I guess it won't kill me :) The funny > thing is that once upon a time when I was a believer of Wirth, I used > to put my BEGINs at the end of the controlling line, but now that I > have become an advocate of Ritchie and Thompson, i put my {s below the > controlling line :) Well, if you're an advocate of Ritchie already then getting you to adopt strict (ansi) K&R should be a breeze, right? :) > 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? :-) > I did write it completely from scratch, because I didn't quite see how > I could easily extract the http code from fetch. The approach is Great, I was hoping you'd say that - it really needed a rewrite. :-) - Jordan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message