Home All Groups Group Topic Archive Search About

Read output from an external webpage/web service



Author
26 Apr 2006 1:31 PM
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

Author
26 Apr 2006 2:07 PM
Mike Brind
bobbyd wrote:
> 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
%>

--
Mike Brind
Author
26 Apr 2006 2:10 PM
Richard K Bethell
ServerXMLHttp object from the MSXML 4.0 SDK.

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q290761

Show quote
"bobbyd" <rob.l.marsh***@btinternet.com> wrote in message
news:1146058297.163571.276310@u72g2000cwu.googlegroups.com...
> 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
>
Author
26 Apr 2006 2:55 PM
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
Author
26 Apr 2006 3:07 PM
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
Author
27 Apr 2006 12:51 PM
Richard K Bethell
Yes, this Ajax precursor doesn't actually have anything to do with XML,
though it is part of the XML library.

"bobbyd" <rob.l.marsh***@btinternet.com> wrote in message
news:1146064034.323664.20830@j33g2000cwa.googlegroups.com...
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

AddThis Social Bookmark Button