|
it
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Read output from an external webpage/web service
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 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 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 > 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 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 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 What if the output is in a non XML format? Can that still be used?news:1146064034.323664.20830@j33g2000cwa.googlegroups.com... 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 |
|||||||||||||||||||||||