Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cache (data refresh) Problem for FtpGetFile IN wininet
Message
From
21/05/2003 12:07:58
Scott Sherman
Puyallup Tribal Health Authority
Tacoma, Washington, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Cache (data refresh) Problem for FtpGetFile IN wininet
Miscellaneous
Thread ID:
00791129
Message ID:
00791129
Views:
103
I have the function below working except one problem. When I retrieve a file then I modify the file from a different computer and retrieve it again, I get the unchanged version of the file. If I close the application and try again, I get the modified file. Also if I use two program on the same computer, they seem to get the correct version of the file. I have included the call I am using, the declare I am using and some dwFlagsAndAttributes that I have tried. INTERNET_FLAG_DONT_CACHE and INTERNET_FLAG_NO_CACHE_WRITE do not get a file at all and the rest have the problem I am trying to get around. Please .

** The call I am using.
IRTN = FtpGetFileA(m.lFTP_Connection, m.remote_file, m.local_file,0,INTERNET_FLAG_RELOAD, 1, 0)

** The declare I am using.
DECLARE INTEGER FtpGetFile IN wininet AS FtpGetFileA ;
INTEGER hFtpSession,;
STRING lpszRemoteFile,;
STRING lpszNewFile,;
INTEGER fFailIfExists,;
INTEGER dwFlagsAndAttributes,;
INTEGER dwFlags,;
INTEGER dwContext

** Defines that I know of and descriptions of what happens.
#define INTERNET_FLAG_DONT_CACHE 67108864
#define INTERNET_FLAG_HYPERLINK 1024
#define INTERNET_FLAG_MAKE_PERSISTENT 33554432
#define INTERNET_FLAG_MUST_CACHE_REQUEST 16
#define INTERNET_FLAG_RELOAD 2147483648
#define INTERNET_FLAG_NO_CACHE_WRITE 67108864
#define INTERNET_FLAG_RESYNCHRONIZE 2048
Next
Reply
Map
View

Click here to load this message in the networking platform