472,118 Members | 1,423 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,118 software developers and data experts.

Microsoft.XMLHTTP: pages not updating

I use Microsoft.XMLHTTP to access htm or asp pages on a central web
site from other satellite sites. In this way, the same content can be
displayed on a dozen websites and I only need to update one file in
order to change the content displayed on all the websites.
I have noticed that when I update the text in the file which is
accessed by Microsoft.XMLHTTP (testXML.htm in the example below), the
updates do not appear for some time on the pages which are referencing
testXML.htm. All the sites, central and satellite, are on shared Win3K
servers. The problem has got worse recently. Could it be related to an
update to the server software or components?
dim objXMLHTTP
set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")

objXMLHTTP.Open "GET", "http://XXX.XXX.XXX.XXX/includes/testXML.htm",
false
objXMLHTTP.SetRequestHeader "Content-type", "text/html"
objXMLHTTP.Send

response.write objXMLHTTP.ResponseText
set objXMLHTTP = nothing

Jan 11 '07 #1
2 4255

"Skyblue" <aa****@postmaster.co.ukwrote in message
news:11**********************@i56g2000hsf.googlegr oups.com...
I use Microsoft.XMLHTTP to access htm or asp pages on a central web
site from other satellite sites. In this way, the same content can be
displayed on a dozen websites and I only need to update one file in
order to change the content displayed on all the websites.
I have noticed that when I update the text in the file which is
accessed by Microsoft.XMLHTTP (testXML.htm in the example below), the
updates do not appear for some time on the pages which are referencing
testXML.htm. All the sites, central and satellite, are on shared Win3K
servers. The problem has got worse recently. Could it be related to an
update to the server software or components?
dim objXMLHTTP
set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")

objXMLHTTP.Open "GET", "http://XXX.XXX.XXX.XXX/includes/testXML.htm",
false
objXMLHTTP.SetRequestHeader "Content-type", "text/html"
objXMLHTTP.Send

response.write objXMLHTTP.ResponseText
set objXMLHTTP = nothing
The problem will be that the content will be cached on the satalite systems
requesting the resources. Only when WinInet (the http stack underpinning
XMLHTTP) decides it's copy of the resource is not fresh will it request a
new copy from the origin server.

Using XMLHTTP inside ASP is a dangerous thing to do anyway, it isn't thread
safe.

You should be using MSXML2.ServerXMLHTTP.3.0 instead. This does no caching
and is thread safe.

Anthony.

Jan 11 '07 #2
Skyblue wrote on 11 jan 2007 in microsoft.public.inetserver.asp.general:
I use Microsoft.XMLHTTP to access htm or asp pages on a central web
site from other satellite sites. In this way, the same content can be
displayed on a dozen websites and I only need to update one file in
order to change the content displayed on all the websites.
I have noticed that when I update the text in the file which is
accessed by Microsoft.XMLHTTP (testXML.htm in the example below), the
updates do not appear for some time on the pages which are referencing
testXML.htm. All the sites, central and satellite, are on shared Win3K
servers. The problem has got worse recently. Could it be related to an
update to the server software or components?
dim objXMLHTTP
set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")
Try:

set objHttp = Server.CreateObject("Msxml2.ServerXMLHTTP")
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jan 11 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Martin Waller | last post: by
12 posts views Thread by Botan Guner | last post: by
39 posts views Thread by tydbowl | last post: by
1 post views Thread by Ike | last post: by
1 post views Thread by daninbrum | last post: by
13 posts views Thread by yawnmoth | last post: by
14 posts views Thread by =?Utf-8?B?VmFuZXNzYQ==?= | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.