Solved

Caching(?) occuring when using CFtpConnection

Posted on 1998-06-22
1
323 Views
Last Modified: 2013-11-20
Hi,

Iv got a basic ftp client that downloads files using CFtpConnection. Everything works great, except when I transfer two files of the same name but different sizes. The second file does not overwrite the first one, but appears to retrieve it from a cache (in wininet.dll perhaps?). When I shutdown the app and restart it again it does the transfer properly though. Iv tried creating my CInternetSession object with the INTERNET_FLAG_DONT_CACHE flag, but that doesn't help either. Could anyone help?

Thanx
Johan
0
Comment
Question by:johand
1 Comment
 
LVL 11

Accepted Solution

by:
mikeblas earned 200 total points
ID: 1318276
INTERNET_FLAG_DONT_CACHE means that the request should write to the cache. If the cache already has the requested item, the library will still resolve the reference from cache.

To ask WININET to get the item from online, even if it is in the cache, you should use the INTERNET_FLAG_RELOAD flag.

B ekiM
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question