return contents of url to asp page

E

Eric

Hello

I'm trying to determine a way to call a url from within an ASP page and have the contents (page source) returned to the calling asp page (the same way iis returns page source to your browser). In reality I'm calling a dll which is parsing xml tags. But rather than get into a complicated example I'll try to provide a simple example of what I'm trying to accomplish

Example

ASP pag
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%><html><head></head><body

call url http://123.23.2.121/junkfile.html and replace its source her

</body></html

JUNKFILE.HTM
<table width="500" border="1"><tr><td width="350">Hello</td><td width="161">&nbsp;</td></tr><tr></table

RESULTING ASP PAG
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%><html><head></head><body><table width="500" border="1"><tr><td width="350">Hello</td><td width="161">&nbsp;</td></tr><tr></table></body></html

Thank

Eri
 
A

Alex Goodey

use serverXmlHTTP()

Eric said:
Hello,

I'm trying to determine a way to call a url from within an ASP page and
have the contents (page source) returned to the calling asp page (the same
way iis returns page source to your browser). In reality I'm calling a dll
which is parsing xml tags. But rather than get into a complicated example
I'll try to provide a simple example of what I'm trying to accomplish.
Example:

ASP page
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%><html><head></head><body>

call url http://123.23.2.121/junkfile.html and replace its source here

</body></html>

JUNKFILE.HTML
<table width="500" border="1"><tr><td width="350">Hello</td><td
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,145
Messages
2,570,825
Members
47,371
Latest member
Brkaa

Latest Threads

Top