Solved

Internal HTTP GET inside ASP page

Posted on 2001-07-25
2
248 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

757 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

19 Experts available now in Live!

Get 1:1 Help Now