Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Microsoft.XMLHTTP takes from the cache
Message
De
19/10/2001 10:53:37
 
 
À
19/10/2001 10:36:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00570570
Message ID:
00570865
Vues:
22
>>>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?
>>
>>I hit this all the time. You can fool the XMLHTTP into thinking that its getting a new url by adding a bogus property to your URL. FOr example, when you usually do this:
>>
>>
loHTTP.Open('GET','http://localhost/zippie/default.asp?orderno=22', .f.)
>>
>>Do this:
>>
>>
loHTTP.Open('GET','http://localhost/zippie/default.asp?orderno=22&zzz=' + SYS(2015), .f.)
>
>Isn't there a method to call or a property to set to do the same?
>
>Other than your suggestion, I have to quit Visual FoxPro after each request and enter again to fire the same process.

seen in the literature:
loHTTP.setRequestHeader("Cache-Control","no-cache")
loHTTP.setRequestHeader("Pragma","no-cache")
bye
----------------------------------
António Tavares Lopes
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform