?
Solved

using MSXML2.ServerXMLHTTP to grab data from same server

Posted on 2011-03-04
2
Medium Priority
?
529 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 1000 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

What Is Blockchain Technology?

Blockchain is a technology that underpins the success of Bitcoin and other digital currencies, but it has uses far beyond finance. Learn how blockchain works and why it is proving disruptive to other areas of IT.

Question has a verified solution.

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

Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

741 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