Home All Groups Group Topic Archive Search About

VB.NET counterpart to the java URL Class

Author
18 Jul 2006 8:11 AM
samadams_2006
Hello,

I'm interesting in finding out the VB.NET alternative to the URL Class.
For example, in Java you can have the following:

------------------------------------------------------------------------------------------------------------------------------------

   URL url = new URL("http://finance.yahoo.com/q?s=AOL");

   InputStream abc = url.openStream();

   BufferedInputStream bufIn = new BufferedInputStream(abc);

------------------------------------------------------------------------------------------------------------------------------------

How would you do this in VB.NET ?

Thanks

Author
18 Jul 2006 8:24 AM
Patrice
Hi,

See System.Net.WebClient (or related classes if you need lower level)

--
Patrice

<samadams_2***@yahoo.ca> a écrit dans le message de news:
1153210311.638085.158***@i42g2000cwa.googlegroups.com...
Show quoteHide quote
> Hello,
>
> I'm interesting in finding out the VB.NET alternative to the URL Class.
> For example, in Java you can have the following:
>
> ------------------------------------------------------------------------------------------------------------------------------------
>
>   URL url = new URL("http://finance.yahoo.com/q?s=AOL");
>
>   InputStream abc = url.openStream();
>
>   BufferedInputStream bufIn = new BufferedInputStream(abc);
>
> ------------------------------------------------------------------------------------------------------------------------------------
>
> How would you do this in VB.NET ?
>
> Thanks
>
Author
18 Jul 2006 9:33 AM
Herfried K. Wagner [MVP]
<samadams_2***@yahoo.ca> schrieb:
> I'm interesting in finding out the VB.NET alternative to the URL Class.
> For example, in Java you can have the following:

'WebClient', 'WebRequest'.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>