Patrick Monnerat wrote: > 1) Use the format above, with an additional / in URL (i.e.: > ftp://as400server//QSYS.LIB/QTEMP.LIB/yourfile.FILE<ftp://as400server/QSYS.LIB/QTEMP.LIB/yourfile.FILE>). > 2) Set option CURLOPT_FTP_FILEMETHOD to FTPFILE_NOCWD.
Sorry, my bad: replace 2) by: 2) Set option CURLOPT_FTP_FILEMETHOD to CURLFTPMETHOD_NOCWD. as Dan told in his answer. See http://curl.haxx.se/libcurl/c/CURLOPT_FTP_FILEMETHOD.html Patrick Thank you again for your replies. I have gotten a lot further. I am successfully uploading to save file in library QTEMP. As part of the next transfer which will be the download, I setup new commands to restore the save file and run the program which also worked ok. The download of the results is not working yet. It still seems to be using the STOR command on the next transfer and I really want to be sending the data from the AS400 to the client in memory. < 250 Now using naming format "0". > RCMD RSTOBJ OBJ(*ALL) SAVLIB(DSPINF) DEV(*SAVF) SAVF(QTEMP/SAVF) MBROPT(*ALL) > ALWOBJDIF(*ALL) RSTLIB(QTEMP) < 250 Command RSTOBJ OBJ(*ALL) SAVLIB(DSPINF) DEV(*SAVF) SAVF(QTEMP/SAVF) MBROPT(*AL successful. > RCMD CALL PGM(DSPINF) < 250 Command CALL PGM(DSPINF) successful. > EPSV * Connect data stream passively < 229 Entering Extended Passive Mode (|||55214|). * Trying 192.168.4.41... * Connecting to 192.168.4.41 (192.168.4.41) port 55214 * Connected to hs41 (192.168.4.41) port 21 (#0) > STOR QTEMP/OUTPUT < 150 Sending file to member OUTPUT in file OUTPUT in library QTEMP. * Doing the SSL/TLS handshake on the data stream * ALPN, offering http/1.1 * Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH * SSL re-using session ID * SSL connection using TLSv1.0 / AES128-SHA * ALPN, server did not agree to a protocol * Server certificate: * subject: C=US; ST=MN.; O=Server; CN=Server * start date: 2015-08-12 13:52:51 GMT * expire date: 2016-08-12 13:52:51 GMT * issuer: C=US; ST=MN.; O=HelpSystems; CN=HelpSystems * SSL certificate verify result: self signed certificate in certificate chain (19), continuing anyway. * Remembering we are in dir "" < 226 File transfer completed successfully. * Connection #0 to host hs41 left intact Wed Sep 02 09:12:16 2015 download of results ok Ken Alverson | +1 952-563-2795 www.helpsystems.com<http://www.helpsystems.com> From: curl-library [mailto:[email protected]] On Behalf Of Patrick Monnerat Sent: Friday, August 28, 2015 6:45 PM To: libcurl development; libcurl development Subject: RE: AS/400 FTP server (was: My first post for verification) ________________________________ Confidentiality Notice: This email, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this email is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this email is prohibited. If you have received this email in error, please notify the sender by replying to this message and delete this email immediately.
------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
