?
Solved

Caching(?) occuring when using CFtpConnection

Posted on 1998-06-22
1
Medium Priority
?
334 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 11

Accepted Solution

by:
mikeblas earned 800 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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

770 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