Solved

using MSXML2.ServerXMLHTTP to grab data from same server

Posted on 2011-03-04
2
515 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Html fieldset fix its height and width 4 44
page view and f5 big ip 4 39
send email part1 9 40
Create PowerShell 2-Dimensional Array From XML Configuration File 6 33
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…
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 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