Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Microsoft.XMLHTTP takes from the cache
Message
De
19/10/2001 13:13:32
 
 
À
19/10/2001 11:26:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00570570
Message ID:
00570993
Vues:
34
>>>>>>>When using the Microsoft.XMLHTTP object to query a Web server, I have found that if I issue the same transaction, the second one will be taken from the cache. How can I force it to go get the data from the server all the time?
>>[...]
>>>>seen in the literature:
>>>>
loHTTP.setRequestHeader("Cache-Control","no-cache")
>>>>loHTTP.setRequestHeader("Pragma","no-cache")
>>>
>>>This gives OLE IDispatch exception code 0 from MSXML.3.DLL. Unspecified error.
>>
>>Well, it doesn't happen that way in this side of the Atlantic. Can't you test it under alternative conditions? (just the first header || other machine || same machine post-reboot).
>
>Ok, it does work if I place those lines after the Open(). Well, I mean, I do not get an error.
>
>However, the result is the same. It reads from the cache.

You're right, XMLHTTP keeps reading from its cache. To prevent this, and if your app is running on a NT-based server, you may switch to
loHttp = createobject("MSXML2.ServerXMLHTTP")
bye
----------------------------------
António Tavares Lopes
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform