get url text vb(asp)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mamyte03
    New Member
    • Aug 2008
    • 2

    get url text vb(asp)

    Hello,

    I need to get from page http://www.teo.lt/ltforms/inc_count.php this 3 numbers.
    I need to do this withasp (with vb script).
    I have this type of script
    Code:
    <% 
        url = "http://www.teo.lt/ltforms/inc_count.php"
     
        ' add a BASE HREF tag 
        Response.write "<BASE HREF='" & url & "'>" 
     
        set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP") 
        xmlhttp.open "GET", url, false 
        xmlhttp.send "" 
        Response.write xmlhttp.responseText 
        set xmlhttp = nothing 
    %>
    <html>
    <head>
    <title>heloo</title>
    </head>
    <body>
    dfasdf
    </body>
    </html>
    but i have this type of error :
    msxml3.dll error '80072efd'

    A connection with the server could not be established

    /test.asp, line 9

    can anybody help me? I am on proxy, maybe this? How can i do that get this numbers to vb string?
    Last edited by DrBunchman; Aug 13 '08, 08:49 AM. Reason: Added [Code] Tags - Please use the '#' button
  • DrBunchman
    Recognized Expert Contributor
    • Jan 2008
    • 979

    #2
    Hi mamyte03,

    All I can tell you is that your code worked fine for me when I tested it s there's nothing wrong with that. It may be because you are behind a proxy as you say - can you connect directly to test that?

    Dr B

    Comment

    Working...