Connecting Tech Pros Worldwide Forums | Help | Site Map

get url text vb(asp)

Newbie
 
Join Date: Aug 2008
Posts: 2
#1: Aug 13 '08
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
Expand|Select|Wrap|Line Numbers
  1. <% 
  2.     url = "http://www.teo.lt/ltforms/inc_count.php"
  3.  
  4.     ' add a BASE HREF tag 
  5.     Response.write "<BASE HREF='" & url & "'>" 
  6.  
  7.     set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP") 
  8.     xmlhttp.open "GET", url, false 
  9.     xmlhttp.send "" 
  10.     Response.write xmlhttp.responseText 
  11.     set xmlhttp = nothing 
  12. %>
  13. <html>
  14. <head>
  15. <title>heloo</title>
  16. </head>
  17. <body>
  18. dfasdf
  19. </body>
  20. </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?

DrBunchman's Avatar
Moderator
 
Join Date: Jan 2008
Location: Winchester, UK
Posts: 930
#2: Aug 13 '08

re: get url text vb(asp)


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
Reply


Similar ASP / Active Server Pages bytes