It was decided that we are going to transfer files with the web server via FTP. This is what the company hosting our web site requested. Can anyone tell me if this is a good idea? I know there are security issues to be aware of, but is there anything else I should be aware of? I know there are alternatives, but I don't know enough to build a strong case for changing the proposed method of transferring files. Time is of the essence with this project.
Here's how I envision things. The web server will send a file containing Customer/Order information to a designated file on our iSeries. The file will have a trigger that will run the necessary programs and ultimately send a file back.
As a result I downloaded the FTPAPI. I'm having a little trouble getting the the TESTPUT program to work.
Using regular batch FTP I can get the following to work:
user pass cd Private put remotei/spgitm.spgitm spgitm FTP RMTSYS('xxx.xxx.x.xxx')
c callp ftp_binaryMode(sess: *on)
c if ftp_put(sess: '/Private/FTPTESTW': C 'TESTLIB/FTPTESTW')<0
I get the message DSPLY No such path or directory when the ftp_put procedure is executed. Does this message indicate the remote, local, or both are incorrect
I've tried just about every combination I can think of. Do I need to run something comparable to the cd Private ftp command before I put the file?
Does the file have to be in the IFS?