Solved

using MSXML2.ServerXMLHTTP to grab data from same server

Posted on 2011-03-04
2
502 Views
Last Modified: 2012-05-11
I am using a carousel to grab data and show results using ajax. I have a JS Carousel file which calls the URL to get data from and happens to be on the same server as the script.

What I am finding is I have no problems when pulling from a different server. However when grabbing XML data using MSXML2.ServerXMLHTTP and GET request off the same server, it times out and seems to go into an infinate loop. Any ideas here?

So

Proxy.asp File uses MSXML2.ServerXMLHTTP to open a url on my server
Data is parsed in carousel and shown to users.
0
Comment
Question by:jfergy
2 Comments
 

Author Comment

by:jfergy
ID: 35040673
here is the code I am using. again, when I grab data from a different site and server, no issues. When its from the same site, I get problems
<%
  Response.Buffer = True
  Dim objXMLHTTP, xml
  
  myURL = Request("myurl")

  ' Create an xmlhttp object:
  Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")
  ' Or, for version 3.0 of XMLHTTP, use:
  ' Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")

  ' Opens the connection to the remote server.
  xml.Open "GET", myURL, False
	
  ' Actually Sends the request and returns the data:
  xml.Send

  'Display the HTML both as HTML and as text
  
  Response.Write xml.responseText
  Set xml = Nothing
  
%>

Open in new window

0
 
LVL 27

Accepted Solution

by:
BigRat earned 250 total points
ID: 35107435
What exactly is the URL you are using when accessing the same machine. I have seen DNS servers translate localhost into www.localhost.de (yes, there IS such a site). Try using 127.0.0.1 instead of localhost or any other name.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question