[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to set passive mode for ftp_url_get API?
Hello,
I wrote a test program like this:
HBNDDIR('LIBFTP/FTPAPI') DFTACTGRP(*NO)
/COPY LIBFTP/QRPGLESRC,FTPAPI_H
C/FREE
ftp_passiv(*ON);
ftp_url_get('ftp://ahost/send/test.file':
'/adir/test.file');
//main process here
exsr endPgm;
//-----------------------
begsr endPgm;
*inlr=*on;
return;
endsr;
/END-FREE
//-------------------
When I ran the program, I didn't see a PASV command but a PORT command
in the ftp server log.
Why?
Thanks
--
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------