Q. Is it possible to show a progress bar during the execution of curl.SendRequest?
A. Yes it is possible, you should derive XFerInfo callback method, for example:
curl CLASS(TCurlClass)
XFerInfo PROCEDURE(REAL dltotal, REAL dlnow, REAL ultotal, REAL ulnow), LONG, DERIVED
END
curl.XFerInfo PROCEDURE(REAL dltotal, REAL dlnow, REAL ultotal, REAL ulnow)
CODE
IF dlnow
!- downloaded {dlnow} of {dltotal} bytes
END
IF ulnow
!- uploaded {ulnow} of {ultotal} bytes
END
RETURN PARENT.XFerInfo(dltotal, dlnow, ultotal, ulnow)
Getting Error on Compile:
Error(3): cif$fileopen printf.incThe system cannot find the path specified. - C:\Clarion10\Accessory\LibSrc\Win\libcurldropbox.clw:1
PS: Update.
I copied the libcurldropbox.clw from Ver 1.49 as a temporary fix just to get a compile and do some testing.
Using the Simple FTP Manager C10 example as a test system.
When the Remote System has Folders with spaces in the folder name and you try to change folder I get the following error:
URL using bad/illegal format or missing URL
Now I get 13 new errors:
Unknown function label - C:\Clarion10\Accessory\LibSrc\Win\libcurldropbox.clw:77,10
on all these lines:
args = printf(‘code=%s&grant_type=authorization_code&client_id=%s&client_secret=%s’, pAuthCode, pAppKey, pAppSecret)
Is there a way that you will be able to work around this.
Else it is going to cause a nightmare.
We don’t have control over how the SFTP or any other server folders is created.