whna@cgch.UUCP (Heinz Naef) (01/06/88)
Did anyone develop a (limited) FTP client, implemented as a C programming library, usable from within application programs to allow them to request standard FTP servers in the network to send or receive a file? Do any standard semantics exist for such an application programming interface? Any comments are welcome. Regards, Heinz Naef, c/o CIBA-GEIGY AG, R-1032.5.62, P.O.Box, CH-4002 Basel, Switzerland uucp: cgch!whna - bitnet: whna%cgch.uucp@cernvax.bitnet phone: (+41) 61 37 26 75 fax: (+41) 61 36 43 54 (Attn: H.Naef, R-1032.5.62)
ron@TOPAZ.RUTGERS.EDU (Ron Natalie) (01/08/88)
Yes, I have such a thing (I think), I'll mail it to you under a separate letter when I dig it out. -Ron
JBVB@AI.AI.MIT.EDU ("James B. VanBokkelen") (01/09/88)
FTP Software's PC/TCP Developer's Kit (V2.0) has such an interface. I didn't do it, but I'm not now aware of any others, or any standard to follow. There are a dozen or more functions you can call, like ftp_stor() and so forth. jbvb
lm@arizona.edu (Larry McVoy) (01/16/88)
In article <571@cgcha.cgch.UUCP> whna@cgch.UUCP (Heinz Naef) writes: >Did anyone develop a (limited) FTP client, implemented as a C programming >library, usable from within application programs to allow them to request >standard FTP servers in the network to send or receive a file? > How about /* * send a file via ftp * * Bugs - no error checking/handling * - password is in cleartext */ send(host, user, passwd, file) char* host; char* user; char* passwd; char* file; { FILE* ftp; ftp = popen("ftp", "w"); fprintf(ftp, "open %s\n", host); fprintf(ftp, "%s\n", user); fprintf(ftp, "%s\n", passwd); fprintf(ftp, "put %s\n", file); pclose(ftp); }