Solved

Caching(?) occuring when using CFtpConnection

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Login Script to Copy Folders 12 47
repeatSeparator  java  challenge 13 58
Tab names are off by one 5 54
sumDigits challenge 9 172
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.

749 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