> > OK, I took a quick look at it last night. My approach so far is to
> > write a new library (libfetch) and integrate the code from fetch and
> > libftpio into it. The libfetch interface consists of two functions:
> > FILE *fetchGetURL(char *URL, int flags);
> > FILE *fetchPutURL(char *URL, int flags);
> > which work as you'd expect. The flags parameter is used to specify
> > options such as passive mode, text/binary mode, verbosity, possibly
> > also protocol version (HTTP 1.0 / HTTP 1.1).
> Sounds reasonable - so the flags will be the union of all possible
> options, e.g. everything from (contrived) FILE_SYMLINK to FTP_PASSIVE?
> Do we have less than 32 options in total? ;-)
Given that this looks a lot like fopen(), maybe use an option string
\\ Sometimes you're ahead, \\ Mike Smith
\\ sometimes you're behind. \\ firstname.lastname@example.org
\\ The race is long, and in the \\ email@example.com
\\ end it's only with yourself. \\ firstname.lastname@example.org