Requesting an XML file from another website using MSXML2.ServerXMLHTTP
I have written some classic ASP code that will obtain the contents of an XML file from another website. This all works perfectly fine when requesting RSS feeds from WordPress and Twitter etc.
My problem is that I have two websites, both on the same web server, (lets say website1 and website2). I have an ASP script on website1 that is trying to obatin an XML file from website2, but I am getting the following error:
msxml3.dll error '80072efd'
A connection with the server could not be established
This only seems to happen when I am requestng an XML file from a website on the same server as the one I am making the request from (i.e. my web server).
I have tried debugging this using the same code, only this time on my local machine. So in this instance, the code is attempting to obatin the XML from from website2 (located on the webserver) and the request is being made from my local machine (i.e. not the webserver). This works perfectly, indicating that the XML file, on website2, can actually be requested.
I am not sure what else to do with this now. The code seems to be working fine in all other scenarios, it is only when I am requestng an XML file from a website on the same server as the one I am making the request from.
Any help with this would be greatly appreciated.