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

Re: Using FTP_GET with iSeries FTP Server



Sender: Scott Klement <sk@xxxxxxxxxxxxxxxx>


On Thu, 3 Mar 2005, Richard Lambert wrote:


I'm new to the FTP APIs and was trying to write a program to get files from
another iSeries.  However, the FTP_GET procedure calls the FTP_SIZE
procedure which is not supported by the iSeries and caused the get to fail.

You're right that FTP_get() will call the FTP_size() routine under the covers. It uses this for some of the FTP_exitProc() routines so that you can write programs that display a progress graph, etc.


However, FTPAPI knows that FTP_get() will fail on many servers. So, when it receives an error from the server it will NOT cause the transfer to fail. It'll put the error message into the log so that the programmer knows that the FTP_size request didnt' work -- but it'll still go ahead and perform the GET request anyway.


Is there a different procedure I should be using or different parameters I
can pass?

No, there's no reason to. It asks the server if it'll do a SIZE request. The server will return "not supported" which is fine -- then FTPAPI will continue to perform the GET request without it.


If your transfer is failing, it's failing for a different reason. Please post the messages that show what's happening (from your job log or a log file, or however yours is set up) so we can see what's happening.


----------------------------------------------------------------------- This is the FTPAPI mailing list. To unsubsribe from the list send mail to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr -----------------------------------------------------------------------