Read output from an external webpage/web service

Discussion in 'ASP General' started by bobbyd, Apr 26, 2006.

  1. bobbyd

    bobbyd Guest

    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, Apr 26, 2006
    #1
    1. Advertising

  2. bobbyd

    Mike Brind Guest

    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
    Mike Brind, Apr 26, 2006
    #2
    1. Advertising

  3. Richard K Bethell, Apr 26, 2006
    #3
  4. bobbyd

    bobbyd Guest

    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
    bobbyd, Apr 26, 2006
    #4
  5. bobbyd

    bobbyd Guest

    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
    bobbyd, Apr 26, 2006
    #5
  6. Yes, this Ajax precursor doesn't actually have anything to do with XML,
    though it is part of the XML library.

    "bobbyd" <> wrote in message
    news:...
    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
    Richard K Bethell, Apr 27, 2006
    #6
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    1
    Views:
    401
  2. Yas
    Replies:
    0
    Views:
    473
  3. Paul
    Replies:
    14
    Views:
    825
    Alexey Smirnov
    Jun 19, 2008
  4. Isaias Formacio Serna

    Web Service that calls an external Web Service

    Isaias Formacio Serna, Jan 28, 2004, in forum: ASP .Net Security
    Replies:
    5
    Views:
    236
  5. sifar
    Replies:
    5
    Views:
    387
Loading...

Share This Page