[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Complete FTP session from a CL program



Sender: Scott Klement <klemscot@xxxxxxxxxxxx>


Hi Buck,

A few questions, if you don't mind being put on the spot?

1) How are errors handled? One of the biggest draws of FTPAPI is the
    ability to handle any error that can occur.   Does this have
    similar capabilities?

2) How does it determine things like binary vs. ascii mode?   or
    active vs. passive mode?  or character translation tables?

3) Where does logging of session go?

Thanks...

P.S. I had considered creating a command called "fetch", which accepts a
   URI as an argument.  If it's an FTP URI, it would use routines from
   FTPAPI, if it's an HTTP URI, it would use routines from HTTPAPI.
   Perhaps your program could be a start of a project like that?


On Tue, 12 Aug 2003, Buck Calabro wrote:
>
> I've wrappered a simple FTP client using FTPAPIR4 into a command so I
> can do a get/put from within a CL program.  Is there any interest in
> putting it in the project?
>
> It looks like so:
>  ===> FTPCMD DIRECTION(*RCV) HOSTNAME(AS400COM) USERNAME(buck) PASSWORD() LOCAL(
> '/qsys.lib/aptgenbu1.lib/ftpapisrc.file/install.mbr') REMOTE('/qsys.lib/buck.lib
> /ftpapisrc.file/install.mbr')
>
> It has a limitation at the moment of only handling NAMEFMT 1 (*PATH)
> because LSTAT wants a *PATH, not LIB/FILE.MBR.
>   --buck
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------