Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XMLHTTP caching problem.
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
XMLHTTP caching problem.
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01214533
Message ID:
01214533
Views:
79
I’m using XMLHTTP control to send and receive data from a web server. As long as the URL’s are unique we are ok but when a URL is repeated it uses the cache info which returns old cached data. How can I clear cache or set a property not to use cache? Example this code will only work once until VFP is restarted.
loHTTP = CREATEOBJECT("Microsoft.XMLHTTP")
loHTTP.open("GET","http://10.0.0.231/state.xml?relayState=1",.F.) 
loHTTP.send() 
?loHTTP.responseText()
loHTTP = .null.

=WaitFor(2)

*loHTTP = CREATEOBJECT("MSXML2.XMLHTTP") 
loHTTP = CREATEOBJECT("Microsoft.XMLHTTP")
loHTTP.open("GET","http://10.0.0.231/state.xml?relayState=0",.F.) 
loHTTP.send() 
?loHTTP.responseText()
loHTTP = .null.
Next
Reply
Map
View

Click here to load this message in the networking platform