Al Mac wrote:
In FTP CL,
STRTCPFTP RMTSYS(*INTNETADR) INTNETADR('##.###.##.##') is used by AS/400 to
make an FTP connection to the address shown in parameter *INTNETADR
Terminology:
This is an IP address (in dotted format):
192.168.0.1
This is a domain name:
ftp.example.com
This is a URL:
ftp://user:password@xxxxxxxxxxxxxxx/pub/examples/test1.txt
The i5/OS FTP client never accepts URLs. It either accepts hostnames or
IP addresses. For example:
STRTCPFTP RMTSYS('ftp.example.com')
or
STRTCPFTP RMTSYS('192.168.0.1')
As far as I can tell, there's absolutely no reason to ever use the
*INTNETADR keyword or the INTNETADR parameter to the STRTCPFTP (or "FTP"
which is a shortcut name) command. As I understand it, *INTNETADR
basically means "never try to use this as a host name, it's always an IP
address". Which serves no value that I can fathom. (I suppose if you
wanted to restrict your user to never being able to supply a host name
-- but I just can't see why you'd do that.)
Anyway, don't use *INTNETADR. Use the RMTSYS parameter for your IP
address or host name.
FWIW, FTPAPI does have support for URLs if you really do need to use
URLs and weren't just using the wrong term.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.