473,382 Members | 1,380 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 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 4318

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Irene | last post by:
Hi, I have an asp page that allows a user to search for info in a DB and add info to a DB. The search uses "ADODB.Connection" objects in the page, but the add will use a call to an isapi dll...
5
by: Martin Waller | last post by:
Hello, I'm using the MSXML.XMLHTTP object to obtain the results of an ASP page from an ASP page on the same server. The problem I have is that when the AP refrenced by the XMLHTTP object is run...
12
by: Botan Guner | last post by:
Hi all, Here is the problem, i'm using Microsoft.XMLHTTP for ie and XMLHttpRequest for mozilla, on my local server which is win2000 server i've no problem with that but when i uploaded the file...
1
by: Raúl Martín | last post by:
I´ve a function in asp that run correctly but If I tried to change it forasp.net in asp: xmlHTTP = CreateObject("Microsoft.XMLHTTP") And I thought to use this sentence for asp.net but the...
39
by: tydbowl | last post by:
I have a problem where the below code chunk causes handle leaks on some machines. The leak APPEARS to be handles to the registry key: HKCU\Software\Microsoft\Windows\CurrentVersion\Internet...
1
by: Ike | last post by:
Ive copied an online example for writing out a php file, programmatically, then would like to re-display that data in a browswer window that automatically refreshes as the data file (getdata.php,...
1
by: daninbrum | last post by:
Dear All, Please excuse the following thickness, I am new to client scripting. I have set up a page comprising of three DIVs, the content of which gets changed by XMLHTTP requests (including...
13
by: yawnmoth | last post by:
<http://www.quirksmode.org/book/printable/xmlhttp.txtshows two alternatives to Microsoft.XMLHTTP - Msxml2.XMLHTTP and Msxml3.XMLHTTP. If my understanding is correct, the different numbers refer to...
14
by: =?Utf-8?B?VmFuZXNzYQ==?= | last post by:
I've been searching everywhere online to find an alternative method besides using Microsoft.XMLHTTP (as it freezes the server up alot!!) but with no luck at all. I am using server side ASP, and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.