General information
Category:
Windows API functions
Title:
Cache (data refresh) Problem for FtpGetFile IN wininet
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only