|
Posted by on 08/17/05 20:36
| 3. Do something like this in VB (copied almost verbatim from
| "VB.NET Programmer's Cookbook" by Matthew MacDonald):
|
| Dim URL As Sting = "your_URL";
| Dim Req As HttpWebRequest = _
| CType(WebRequest.Create(URL), HttpWebRequest)
| Dim Resp As WebResponse = Req.GetResponse()
| Dim R As New StreamReader(Resp.GetResponseStream())
| Dim Page As String = R.ReadToEnd()
| R.Close()
what's worse than a beggar too lazy to do just a *little* work for his food?
the one who feeds him. nc, you just fed his laziness not is hunger; not even
mentioning your encouragement of his posting a vb question in a php ng!
anyway, i suppose it is safe to say that said noob programmer is using vb <=
6 since he assumes the use of ie to accomplish his task...and, unless you
spelled out this vb.net code *in its entirety*, i doubt he could wrap his
mind around the differences between the two versions...of course, if you did
give him the complete source he'd not have to wrap his mind around
anything...which seems to be his preference in the first place.
Navigation:
[Reply to this message]
|