Downloaded HTML is not last update on Server

 

Why did you post your MT4 question in the MT5 Trading Systems section instead of the MQL4 section, (bottom of the Root page)?
          General rules and best pratices of the Forum. - General - MQL5 programming forum? (2017)
Next time, post in the correct place. I have moved this thread.

Hi guys,

I am trying to download ForexFactory news from its page: https://www.forexfactory.com/Calendar

I am using URLDownloadToFileW from urlmon.dll


void xmlDownload()
{
   ResetLastError();
   string sUrl="https://www.forexfactory.com/Calendar";
   string FilePath=StringConcatenate(TerminalInfoString(TERMINAL_DATA_PATH),"\\MQL4\\files\\",htmlFileName);
   int FileGet=URLDownloadToFileW(NULL,sUrl,FilePath,0,NULL);
   if(FileGet==0) PrintFormat(INAME+": %s file downloaded successfully!",htmlFileName);
   else PrintFormat(INAME+": failed to download %s file, Error code = %d",htmlFileName,GetLastError());
}

Downloaded HTML file is not last updated file on server.

this ↓ is what is downloaded from MQL code. As you see Actual values can not be seen/updated yet.

But when I use my browser, all values are over there.



1- what can be probable issue?

2- I read all parameters of URLDownloadToFileW function, there is not any argument that can force to download last update! Am I right?