Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any free SFTP gizmos out there?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01344675
Message ID:
01355986
Vues:
37
I'm trying to use this to upload to a sFTP site. This is what I'm getting:

0 About to connect() to ftp1.xx.xx.org port 21 (#0)
0 Trying 10.xxx.xx.xxx...
0 connected
0 Connected to ftp1.xx.xx.org (10.xxx.xx.xxx) port 21 (#0)
1 220 ftp1.xx.xx.xxx FTP server (NcFTPd 2.2.2) ready.
2 AUTH SSL
1 500 Syntax error, command unrecognized.
2 AUTH TLS
1 500 Syntax error, command unrecognized.
0 Closing connection #0
0 Requested SSL level failed

I've tried to step though the .prg - but just not having much luck figuring out where my 'syntax error' is - you have any ideas?

Thanks!


>I am trying to make a simple post here, but I keep getting an anoying popup telling me which tags are allowed in the site, and I am not using any tags at all in my post.
>
>After trying 5 times, I give up, I have very little patience.
>
>EDIT: I FOUND THE PROBLEM TAG
>
>
>I have updated the docs, still not finished, but almost there. I have updated the class, uploaded the whole package. Now the class is contained in a vcx.
>
>http://www.ctl32.com.ar/ctl32_curl.asp
>
>upload from string/file implemented
>download to string/file implemented
>lots of libcurl settings added as class properties
>
>What is not working yet is the CURLOPT_PROGRESSFUNCTION callback:
>
>http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTPROGRESSFUNCTION
>
>The class has working callbacks implemented with vfp2c32.fll for:
>
>CURLOPT_DEBUGFUNCTION
>CURLOPT_WRITEFUNCTION
>CURLOPT_READFUNCTION
>CURLOPT_SEEKFUNCTION
>
>But the progresscallback raises a dll exception as soon as curl_easy_perform is called. It seems the callback is raised once, and then yo uget the exception. I have not been able to find where the problem is.
>
>Maybe someone with a little bit more knowledge of C can look this up. The working callback functions are pretty clear with the parameters, but not this one:
>
>"Function pointer that should match the curl_progress_callback prototype found in
<curl/curl.h>
" So i dig up curl.h, and I find this:
>
>typedef int (*curl_progress_callback) (void *clientp,
> double dltotal,
> double dlnow,
> double ultotal,
> double ulnow);
>
>Now I dont know what those C doubles translate to in VFP, I have found code like this:
>
>Curl_ProgressFunction(clientp, dltotal_l, dltotal_h, dlnow_l, dlnow_h, ultotal_l, ultotal_h, ulnow_l, ulnow_h)
>
>And the vfp2c32.fll intellisense indicates I can use DOUBLE; INTEGER; etc.
>
>Anyone can help with this problem?
>
>Carlos Alloatti
ICQ 10556 (ya), 254117
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform