Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Always getting the same old page from internet
Message
De
15/02/2011 06:32:25
 
 
À
15/02/2011 06:04:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01500188
Message ID:
01500192
Vues:
48
>Hi all,
>I'm trying to get news from a site (www.ansa.it). My problem is that I get the current page just at my first connection, while the procedure carry on giving me the same page also when the page is changed.
>I suppose it is due to some buffer.
>How can I do to get over that ?
>
>Actually I have a timer which goes repeatly to download an URL.
>
>for downloading data I use this function
>
>
>
>Function GetFileFromUrl
>Lparameters lcRemoteFile, lcLocalFile
>Declare Integer URLDownloadToFile In urlmon.Dll;
>  INTEGER pCaller, String szURL, String szFileName,;
>  INTEGER dwReserved, Integer lpfnCB
>Return URLDownloadToFile (0, lcRemoteFile, Iif(Empty(lcLocalFile), JustFname(lcRemoteFile), lcLocalFile), 0, 0) = 0
>
I saw a link somewhere (can't find it) that suggested setting dwReserved to 2 to prevent the function returning data from the cache. No idea if it works but might be worth a try.....
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform