On 8/26/2015 7:12 AM, 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
You may get some hint by enabling verbosity:
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
If you post a self contained source example that can be used to
reproduce your issue someone on here is likely to try it. Be sure to
remove any sensitive information.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html