Read output from an external webpage/web service

B

bobbyd

Hi All,

Does anyone know of a way to read an output from an external
webpage/service?

For example;
The external source is on http://serverA:6010/sendoutput
This page displays one line of outputted text, I want to be able to
read this in an asp page into a variable.

Any ideas?
TIA
Rob
 
M

Mike Brind

bobbyd said:
Hi All,

Does anyone know of a way to read an output from an external
webpage/service?

For example;
The external source is on http://serverA:6010/sendoutput
This page displays one line of outputted text, I want to be able to
read this in an asp page into a variable.

Any ideas?
TIA
Rob

<%
Dim strUrl, myVar, xmlhttp
strUrl = "http://serverA:6010/sendoutput"
set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.open "GET", strUrl , false
xmlhttp.send ""
myVar = xmlhttp.responseText
set xmlhttp = nothing
%>
 
B

bobbyd

What if the output is in a non XML format? Can that still be used?
Example output is ;
"2¬5`J Smith`2`6``00:11:25`0`7`3`10`0`0`¬7`T
Jones`2`16``00:03:12`3`20`0`0`0`2`¬true`0"

TIA
Rob
 
B

bobbyd

What if the output is in a non XML format? Can that still be used?
Example output is ;
"2¬5`J Smith`2`6``00:11:25`0`7`3`10`0`0`¬7`T
Jones`2`16``00:03:12`3`20`0`0`0`2`¬true`0"

TIA
Rob
 
R

Richard K Bethell

Yes, this Ajax precursor doesn't actually have anything to do with XML,
though it is part of the XML library.

What if the output is in a non XML format? Can that still be used?
Example output is ;
"2¬5`J Smith`2`6``00:11:25`0`7`3`10`0`0`¬7`T
Jones`2`16``00:03:12`3`20`0`0`0`2`¬true`0"

TIA
Rob
 

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
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top