bdbsailor
asked on
Microsoft.XMLHTTP: error (0x800C0005)
code:
<%
Set xml = Server.CreateObject("Micro soft.XMLHT TP")
xml.Open "GET", "http://users.pandora.be/hts/error", true
xml.Send
Set fso = CreateObject("Scripting.Fi leSystemOb ject")
Set MyFile = fso.CreateTextFile("c:\err .txt", True)
MyFile.writeLine(xml.respo nseText)
response.Write (xml.responseText)
MyFile.Close
%>
this is a known script for retrieving the content of a webpage
when I ran the script the first time (localhost) I had error (0x800c005)
When I loaded the "http://users.pandora.be/hts/error" en ran then the script again all seems ok
when I changed the content of "http://users.pandora.be/hts/error" the asp page showed me the content of the previous error file.
When I cleared the cache again I received error (0x800c005)
is there a way to preload "http://users.pandora.be/hts/error" on serverside or there an other way?
thanks
Bart - Belgium
<%
Set xml = Server.CreateObject("Micro
xml.Open "GET", "http://users.pandora.be/hts/error", true
xml.Send
Set fso = CreateObject("Scripting.Fi
Set MyFile = fso.CreateTextFile("c:\err
MyFile.writeLine(xml.respo
response.Write (xml.responseText)
MyFile.Close
%>
this is a known script for retrieving the content of a webpage
when I ran the script the first time (localhost) I had error (0x800c005)
When I loaded the "http://users.pandora.be/hts/error" en ran then the script again all seems ok
when I changed the content of "http://users.pandora.be/hts/error" the asp page showed me the content of the previous error file.
When I cleared the cache again I received error (0x800c005)
is there a way to preload "http://users.pandora.be/hts/error" on serverside or there an other way?
thanks
Bart - Belgium
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
deighc,
>>You're making an asynchronous connection to the remote server. <<
Good catch!
>>You're making an asynchronous connection to the remote server. <<
Good catch!
ASKER
error text 0x800c005?? nothing
Error Type:
(0x800C0005)
/checklist/testretrieve.as p, line 20
that's all I get
sorry, I used "GET", "http://users.pandora.be/hts/error", false all the time but in a way for testing I used 'True' (asynch).
today I tried an other server with another text - file and didn't get the 0x800c005 BUT always I received the same content unless the content of the text on the webpage changed.
other ideas?
Error Type:
(0x800C0005)
/checklist/testretrieve.as
that's all I get
sorry, I used "GET", "http://users.pandora.be/hts/error", false all the time but in a way for testing I used 'True' (asynch).
today I tried an other server with another text - file and didn't get the 0x800c005 BUT always I received the same content unless the content of the text on the webpage changed.
other ideas?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I thought my solution worked for him.... cauz he never replied after that... lol.
Khurram.
Khurram.
:)
As far as pre-loading, I haven't needed that much, but I think you can pre-cache content by using file includes.