Jump to content

Visual Basic - Read a url


Recommended Posts

Hey guys I lack some knowledge in VB and I have noticed that searching on Yahoo with VB or Visual Basic in the search term really does nothing to help me, it's not like getting help with php.

 

Anyway, I was wondering how to open a file on the internet? so for example if www.url.com/script.php outputted some text how could I connect to that page with VB and grab that page data?

 

I hope someone can help, thanks!

Link to comment
https://forums.phpfreaks.com/topic/209104-visual-basic-read-a-url/
Share on other sites

  • 1 month later...

Hey guys I lack some knowledge in VB and I have noticed that searching on Yahoo with VB or Visual Basic in the search term really does nothing to help me, it's not like getting help with php.

 

Anyway, I was wondering how to open a file on the internet? so for example if www.url.com/script.php outputted some text how could I connect to that page with VB and grab that page data?

 

I hope someone can help, thanks!

 

 

What version of Visual Basic is it? Do you mean the web-page source?

I know, in 6 you can do

 

 

WebBrowser1.Navigate Text1Do While Me.WebBrowser1.Busy: DoEvents: LoopText2.RefreshText2 = WebBrowser1.Document.documentElement.OuterHTML

 

Just put that on a command button and make two textboxes (Text1, Text2)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.