Solved

Internal HTTP GET inside ASP page

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

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

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 use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

810 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