Solved

Internal HTTP GET inside ASP page

Posted on 2001-07-25
2
249 Views
Last Modified: 2010-08-05
I have written some ASP COM Objects using Delphi that are able to do what I call an "internal HTTP GET" of some other page (on the same web or not) and then parse the results and do whatever I need with them inside the object itself.

Ok...that I know how to do.

What I am asking is if anyone knows how I could, on the server-side in an ASP page (either JavaScript or VBScript) I could to some HTTP GET of another page, get the results and parse them to do some specific stuff based on the results I get.

For example...I would like to have a database on a remote server that stores some data.  I would like to have a specific CGI or ISAPI program that can retrieve the data and return it in some form to whoever requests it.  I would like an ASP page to be able to call that CGI (via HTTP GET) and parse the results and perhaps display them, or in some way use them for building the resultant page to be sent to the client.

I don't want to have to use a custom binary object (like what I mentioned before about Delphi) to accomplish this...I'd like to have it in the ASP script itself.

Am I crazy?  Is it even possible?

Jim
0
Comment
Question by:JimboKern69
2 Comments
 

Accepted Solution

by:
holymud earned 200 total points
ID: 6320980
Use ServerXMLHTTP object for server to server communication

--------------------
Dim xmlServerHttp As New Msxml2.serverXmlHttp
xmlServerHttp.open "GET", "http://localhost/sample.xml", False
xmlServerHttp.send
response.write xmlServerHttp.responseText
-----------------------
0
 

Author Comment

by:JimboKern69
ID: 6548515
Just realized I never graded this...thanks for the info!

Sorry it took so long!

Jimbo
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Dynamic? Dropdown Box 29 71
Prevent site to open without the www. 9 61
API Location, separating out information 10 45
Response.Flush in Classic ASP causing TIME_WAIT ports 9 83
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

914 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now