Solved

Caching(?) occuring when using CFtpConnection

Posted on 1998-06-22
1
317 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now