bar
2007-08-28 16:53:21 UTC
Hello
I am using BCB6 and built in Indy 8.0.25
For downloading the files i took the snip from the previous posts.
TIdHTTP *HTTP;
AnsiString FileName;
FileName = "c:\\add.xml";
std::auto_ptr<TFileStream> strm(new TFileStream(FileName,fmCreate));
std::auto_ptr<TIdHTTP> h(new TIdHTTP(NULL));
HTTP = h.get();
HTTP->HandleRedirects = true;
HTTP->Get("http://www.jazirasoft.com/~webtest/ctests/ads/01ad.xml",
strm.get());
But i am getting a older copy of files, not the updated one. How to prevent
caching of files in the TldHTTP
Thanks
SA
I am using BCB6 and built in Indy 8.0.25
For downloading the files i took the snip from the previous posts.
TIdHTTP *HTTP;
AnsiString FileName;
FileName = "c:\\add.xml";
std::auto_ptr<TFileStream> strm(new TFileStream(FileName,fmCreate));
std::auto_ptr<TIdHTTP> h(new TIdHTTP(NULL));
HTTP = h.get();
HTTP->HandleRedirects = true;
HTTP->Get("http://www.jazirasoft.com/~webtest/ctests/ads/01ad.xml",
strm.get());
But i am getting a older copy of files, not the updated one. How to prevent
caching of files in the TldHTTP
Thanks
SA