Thanks for the response Dan.

I am past my first issues which were user error because I was trying to use a 
connect only setopt that did not support the ftp protocol.  When I removed it, 
the transfer was attempted and did work ok.  However, now I want to change to 
using the qtemp library but I am running into an issue again.

                /* specify target */
                url.Format("ftp://%s//%s";, csIpAddress, "QTEMP/SAVF");
                curl_easy_setopt(curl, CURLOPT_URL, url);

When I specify the target in a URL as above, CURL seems to want to use the CWD 
command to change the current working directory and the iSeries does not allow 
that:
> CWD /
< 250-NAMEFMT set to 1.
< 250 "/" is current directory.
> CWD QTEMP
< 550-Specified directory does not exist or cannot be accessed.
< 550 Working directory not changed.

* Server denied you to change to the given directory
* Connection #0 to host hs41 left intact
Wed Aug 26 12:44:42 2015  Access denied to remote resource

I am not the one specifying the CWD's so this must be occurring with CURL 
itself.  So how does one specify qtemp as a library to get or put files?

Ken Alverson | +1 952-563-2795
www.helpsystems.com

-----Original Message-----
From: curl-library [mailto:[email protected]] On Behalf Of Dan 
Fandrich
Sent: Wednesday, August 26, 2015 3:16 PM
To: [email protected]
Subject: Re: My first post for verification

On Wed, Aug 26, 2015 at 06:12:37AM -0500, Ken Alverson wrote:
> I am currently trying to integrate curl-library into a small program
> that will ftp a small program to an iSeries system, run it, then ftp
> the file results back to the same local PC program for display.  My
> choice of using curl library for this was to obtain the SSL capability
> for secure ftp as some of our customer only allow secure ftp connections; 
> i.e. banks.
>
> I have the libraries all built and statically linked into my main
> program and I am able to securely connect and send remote commands ok
> via ftp.  However, I am having trouble getting the upload/download
> part to work.  Specifically, the callback does not appear to be
> called.  The standalone example I ran to upload a text string worked great.  
> The file appeared in my home directly just fine
> and I could see that the callback was getting control.   The code in my real
> program is almost the same with the exception of a few commands sent
> first and the fact that I am trying to re-use the same connection.  It
> is however written using c++ logic instead of c, but I would think
> that wouldn’t matter.  I could post details about the curl code if
> there is anyone out there willing to help me out.  Thanks in advance

Without code to look at, about all anyone can say is something like "you're 
probably doing something wrong".

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

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

Reply via email to